related to issue 24389: return NEW is not needed in this case
authorGuillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Tue, 13 Aug 2013 08:49:20 +0200
changeset 20977 21d0baeb6c99
parent 20976 4080460baf19
child 20978 d69e1e7d3031
related to issue 24389: return NEW is not needed in this case
src-db/database/model/triggers/M_TRANSACTION_TRG2.xml
--- a/src-db/database/model/triggers/M_TRANSACTION_TRG2.xml	Mon Aug 12 19:03:16 2013 +0200
+++ b/src-db/database/model/triggers/M_TRANSACTION_TRG2.xml	Tue Aug 13 08:49:20 2013 +0200
@@ -35,8 +35,7 @@
   END IF;
 
   IF (INSERTING) THEN
-    IF (:NEW.isreservationtriggerdisabled = 'Y') THEN
-      RETURN NEW;
+    IF (:NEW.isreservationtriggerdisabled = 'Y') THEN RETURN;
     END IF;
     IF (:NEW.movementqty < 0 AND :NEW.m_product_uom_id IS NULL) THEN
       -- Check reservations. Reserved stock must be released before inserting the transacion.