Browse Source

bugfix create customfields

andre 5 years ago
parent
commit
eea8ad3446
1 changed files with 10 additions and 0 deletions
  1. 10 0
      zimbraSingle.php

+ 10 - 0
zimbraSingle.php

@@ -103,6 +103,16 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
             ->select('id')
             ->get();
         $customFieldIDs = recursiveFindAll($customFieldIDsObj, 'id');
+        logModuleCall(
+            'zimbrasingle',
+            __FUNCTION__,
+            $productID,
+            "debug",
+            $customFieldIDs
+        );
+        Capsule::table('tblcustomfields')
+            ->where('relid', '=', $productID)
+            ->delete();
         Capsule::table('tblcustomfields')
         ->updateOrInsert(
             array(