]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- applied upstream
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 23 Apr 2007 21:18:06 +0000 (21:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-reports-tt.patch -> 1.8

eventum-reports-tt.patch [deleted file]

diff --git a/eventum-reports-tt.patch b/eventum-reports-tt.patch
deleted file mode 100644 (file)
index 8047130..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
---- old/include/class.time_tracking.php        2007-04-20 12:20:38.000000000 +0300
-+++ new/include/class.time_tracking.php        2007-04-20 12:27:29.000000000 +0300
-@@ -541,6 +541,36 @@
-             return $res;
-         }
-     }
-+
-+    /**
-+     * Method used to get the time spent for a specific issue
-+     * at a specific time.
-+     *
-+     * @access  public
-+     * @param   integer $issue_id The issue ID
-+     * @param   string $usr_id The ID of the user this report is for.
-+     * @param   integer The timestamp of the beginning of the report.
-+     * @param   integer The timestamp of the end of this report.
-+     * @return  integer The time spent
-+     */
-+    function getTimeSpentByIssueAndTime($issue_id, $usr_id, $start, $end)
-+    {
-+        $stmt = "SELECT
-+                    SUM(ttr_time_spent)
-+                 FROM
-+                    " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "time_tracking
-+                 WHERE
-+                    ttr_usr_id = " . Misc::escapeInteger($usr_id) . " AND
-+                    ttr_created_date BETWEEN '" . Misc::escapeString($start) . "' AND '" . Misc::escapeString($end) . "' AND
-+                    ttr_iss_id=" . Misc::escapeInteger($issue_id);
-+        $res = $GLOBALS["db_api"]->dbh->getOne($stmt);
-+        if (PEAR::isError($res)) {
-+            Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
-+            return 0;
-+        } else {
-+            return $res;
-+        }
-+    }
- }
- // benchmarking the included file (aka setup time)
---- old/templates/reports/weekly.tpl.html      2006-12-05 22:53:38.000000000 +0200
-+++ new/templates/reports/weekly.tpl.html      2007-04-20 12:31:32.000000000 +0300
-@@ -76,6 +76,11 @@
-             <input type="checkbox" name="ignore_statuses" value="1" class="default" {if $smarty.post.ignore_statuses == 1}checked{/if}>
-             <a id="link" class="link" href="javascript:void(null)"
-                             onClick="javascript:toggleCheckbox('weekly_report', 'ignore_statuses', 0)">{t}Ignore Issue Status Changes{/t}</a>&nbsp;
-+            <br />
-+            <input type="checkbox" name="show_per_issue" value="1" class="default" {if $smarty.post.show_per_issue == 1}checked{/if}>
-+            <a id="link" class="link" href="javascript:void(null)"
-+                            onClick="javascript:toggleCheckbox('weekly_report', 'show_per_issue', 0)">{t}Show Times spent on issue{/t}</a>&nbsp;
-+
-           </td>
-         </tr>
-       </table>
---- old/templates/reports/weekly_data.tpl.html 2006-04-19 06:37:26.000000000 +0300
-+++ new/templates/reports/weekly_data.tpl.html 2007-04-20 15:36:17.000000000 +0300
-@@ -3,7 +3,9 @@
- {$application_title} {t}issues worked on{/t}:
- {section name=issue loop=$data.issues.other}
--{$data.issues.other[issue].iss_id|str_pad:4:" ":"STR_PAD_LEFT"} {$data.issues.other[issue].iss_summary|htmlspecialchars}
-+{$data.issues.other[issue].iss_id|str_pad:4:" ":"STR_PAD_LEFT"} {$data.issues.other[issue].iss_summary|htmlspecialchars} {if
-+$smarty.post.show_per_issue == 1}({$data.issues.other[issue].time_spent}){/if}
-+
- {sectionelse}
- {t}No issues touched this time period{/t}
- {/section}
-@@ -12,7 +14,9 @@
- {t}Issues Closed{/t}:
- {section name=issue loop=$data.issues.closed}
--{$data.issues.closed[issue].iss_id|str_pad:4:" ":"STR_PAD_LEFT"} {$data.issues.closed[issue].iss_summary|htmlspecialchars}
-+{$data.issues.closed[issue].iss_id|str_pad:4:" ":"STR_PAD_LEFT"} {$data.issues.closed[issue].iss_summary|htmlspecialchars} {if
-+$smarty.post.show_per_issue == 1}({$data.issues.closed[issue].time_spent}){/if}
-+
- {sectionelse}
- {t}No issues closed this time period{/t}
- {/section}
---- old/include/class.history.php      2007-04-20 12:20:39.000000000 +0300
-+++ new/include/class.history.php      2007-04-20 12:25:41.000000000 +0300
-@@ -271,6 +271,9 @@
-                         $details = Customer::getDetails($row["iss_prj_id"], $row["iss_customer_id"]);
-                         $row["customer_name"] = $details["customer_name"];
-                     }
-+                    $timeForIssue = Time_Tracking::getTimeSpentByIssueAndTime($row['iss_id'], $usr_id, $start, $end);
-+                    $row['time_spent'] = Misc::getFormattedTime($timeForIssue, false);
-+
-                     if (($separate_closed) && ($row['sta_is_closed'] == 1)) {
-                         $data['closed'][] = $row;
-                     } else {
This page took 0.902737 seconds and 4 git commands to generate.