Author: glen                         Date: Tue Mar 13 23:06:36 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- $usr_id was missing

---- Files affected:
SOURCES:
   eventum-att_error_rollback.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/eventum-att_error_rollback.patch
diff -u SOURCES/eventum-att_error_rollback.patch:1.2 
SOURCES/eventum-att_error_rollback.patch:1.3
--- SOURCES/eventum-att_error_rollback.patch:1.2        Wed Mar 14 00:01:03 2007
+++ SOURCES/eventum-att_error_rollback.patch    Wed Mar 14 00:06:30 2007
@@ -90,3 +90,29 @@
                  return -1;
              }
          }
+--- eventum/include/class.attachment.php       2007-03-14 01:05:14.801252479 
+0200
++++ eventum/include/class.attachment.php       2007-03-14 01:02:59.558211284 
+0200
+@@ -284,6 +284,7 @@
+         if ($res == 1) {
+             Issue::markAsUpdated($issue_id);
+             // need to save a history entry for this
++            $usr_id = Auth::getUserID();
+             History::add($issue_id, $usr_id, 
History::getTypeID('attachment_removed'), 'Attachment removed by ' . 
User::getFullName($usr_id));
+         }
+         return $res;
+@@ -299,7 +300,6 @@
+     function _remove($iat_id)
+     {
+         $iat_id = Misc::escapeInteger($iat_id);
+-        $usr_id = Auth::getUserID();
+         $stmt = "SELECT
+                     iat_iss_id
+                  FROM
+@@ -307,6 +307,7 @@
+                  WHERE
+                     iat_id=$iat_id";
+         if (Auth::getCurrentRole() < User::getRoleID("Manager")) {
++            $usr_id = Auth::getUserID();
+             $stmt .= " AND
+                     iat_usr_id=$usr_id";
+         }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/SOURCES/eventum-att_error_rollback.patch?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to