]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- updated to in 20060809
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 8 Aug 2006 23:59:39 +0000 (23:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eventum-cli-wr-separated.patch -> 1.3

eventum-cli-wr-separated.patch

index 9795dde097d4776d915c9c24cf1478eea3fd4f7f..7467956f7e57b90c770cc7e05423699abcb3f40a 100644 (file)
 +++ /tmp/eventum       2005-07-19 17:43:37.000000000 +0300
 @@ -218,15 +218,19 @@
          }
-         Command_Line::lookupCustomer(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
+         Command_Line::lookupCustomer($client, $auth, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
      } elseif (($HTTP_SERVER_VARS['argv'][1] == 'weekly-report') || ($HTTP_SERVER_VARS['argv'][1] == 'wr')) {
 -        if (count(@$HTTP_SERVER_VARS['argv']) == 4) {
 +        if (count(@$HTTP_SERVER_VARS['argv']) >= 4 and $HTTP_SERVER_VARS['argv'][3] != '--separate-closed') {
 +            $separate_closed = (@$HTTP_SERVER_VARS['argv'][4] == '--separate-closed');
              // date range
--            Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
-+            Command_Line::getWeeklyReport(&$client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
+-            Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3]);
++            Command_Line::getWeeklyReport($client, $auth, 0, $HTTP_SERVER_VARS['argv'][2], $HTTP_SERVER_VARS['argv'][3], $separate_closed);
          } else {
              // weekly
              if (@$HTTP_SERVER_VARS['argv'][2] == '') {
@@ -37,8 +37,8 @@
 +            } else {
 +                $separate_closed = (@$HTTP_SERVER_VARS['argv'][3] == '--separate-closed' or @$HTTP_SERVER_VARS['argv'][2] == '--separate-closed');
              }
--            Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2]);
-+            Command_Line::getWeeklyReport(&$client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
+-            Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2]);
++            Command_Line::getWeeklyReport($client, $auth, $HTTP_SERVER_VARS['argv'][2], '', '', $separate_closed);
          }
      } elseif ($HTTP_SERVER_VARS['argv'][1] == 'clock') {
          Command_Line::timeClock(&$client, $auth, @$HTTP_SERVER_VARS['argv'][2]);
       * @param   string $end_date The end_date of the report. (optional)
 +     * @param   boolean If closed issues should be separated from other issues. 
       */
--    function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '')
-+    function getWeeklyReport($rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
+-    function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '')
++    function getWeeklyReport(&$rpc_conn, $auth, $week, $start_date = '', $end_date = '', $separate_closed = false)
      {
          $msg = new XML_RPC_Message("getWeeklyReport", array(
-             new XML_RPC_Value($auth[0], 'string'), 
+             new XML_RPC_Value($auth[0], 'string'),
              new XML_RPC_Value($auth[1], 'string'),
-             new XML_RPC_Value($week, "int"), 
-             new XML_RPC_Value($start_date, "string"), 
+             new XML_RPC_Value($week, "int"),
+             new XML_RPC_Value($start_date, "string"),
 -            new XML_RPC_Value($end_date, "string")
 +            new XML_RPC_Value($end_date, "string"),
 +            new XML_RPC_Value($separate_closed ? 1 : 0, 'int'), 
This page took 0.069194 seconds and 4 git commands to generate.