Browse Source

Update HelperController.php

fix bug for postgresql : Invalid text representation: 7 ERROR:  invalid input syntax for integer: """
Jean-Louis 12 years ago
parent
commit
72f96fb09c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Controller/HelperController.php

+ 2 - 0
Controller/HelperController.php

@@ -178,6 +178,8 @@ class HelperController
         if ($uniqid) {
             $admin->setUniqid($uniqid);
         }
+        
+        if(!$objectId){$objectId = NULL;}
 
         $object = $admin->getObject($objectId);