Browse Source

Update HelperController.php

fix bug for postgresql : Invalid text representation: 7 ERROR:  invalid input syntax for integer: """
Jean-Louis 12 năm trước cách đây
mục cha
commit
72f96fb09c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Controller/HelperController.php

+ 2 - 0
Controller/HelperController.php

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