SOURCES: eventum-att_error_rollback.patch - update to r3282

glen glen at pld-linux.org
Mon Mar 19 20:42:19 CET 2007


Author: glen                         Date: Mon Mar 19 19:42:19 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- update to r3282

---- Files affected:
SOURCES:
   eventum-att_error_rollback.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/eventum-att_error_rollback.patch
diff -u SOURCES/eventum-att_error_rollback.patch:1.5 SOURCES/eventum-att_error_rollback.patch:1.6
--- SOURCES/eventum-att_error_rollback.patch:1.5	Wed Mar 14 00:38:22 2007
+++ SOURCES/eventum-att_error_rollback.patch	Mon Mar 19 20:42:14 2007
@@ -50,8 +50,8 @@
          }
          $attachment_id = Attachment::add($_POST["issue_id"], $usr_id, @$_POST["file_description"], $internal_only);
          foreach ($files as $file) {
--            Attachment::addFile($attachment_id, $_POST["issue_id"], $file["filename"], $file["type"], $file["blob"]);
-+            $res = Attachment::addFile($attachment_id, $_POST["issue_id"], $file["filename"], $file["type"], $file["blob"]);
+-            Attachment::addFile($attachment_id, $file["filename"], $file["type"], $file["blob"]);
++            $res = Attachment::addFile($attachment_id, $file["filename"], $file["type"], $file["blob"]);
 +            if ($res !== true) {
 +                // we must rollback whole attachment (all files)
 +                Attachment::remove($attachment_id, false);
================================================================

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



More information about the pld-cvs-commit mailing list