Browse Source

bugfix create customfields

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

+ 10 - 3
zimbraSingle.php

@@ -97,10 +97,17 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
 {
     $whmcs = App::self();
     $productID = $whmcs->get_req_var('id');
-    Capsule::table('tblcustomfields')
-        ->where('relid', '=', $productID)
-        ->delete();
     try {
+        $customFields = Capsule::table('tblcustomfields')
+            ->where('relid', '=', $productID)
+            ->select();
+        logModuleCall(
+            'zimbrasingle',
+            __FUNCTION__,
+            $productID,
+            "Debug",
+            $customFields
+        );
         Capsule::table('tblcustomfields')
         ->insert(
             array(