Explorar el Código

bugfix create customfields

andre hace 5 años
padre
commit
bcfb272dba
Se han modificado 1 ficheros con 10 adiciones y 3 borrados
  1. 10 3
      zimbraSingle.php

+ 10 - 3
zimbraSingle.php

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