Browse Source

bugfix create customfields

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

+ 3 - 3
zimbraSingle.php

@@ -98,15 +98,15 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
     $whmcs = App::self();
     $whmcs = App::self();
     $productID = $whmcs->get_req_var('id');
     $productID = $whmcs->get_req_var('id');
     try {
     try {
-        $customFields = Capsule::table('tblcustomfields')
+        $customFieldIDs = Capsule::table('tblcustomfields')
             ->where('relid', '=', $productID)
             ->where('relid', '=', $productID)
-            ->select();
+            ->select('id');
         logModuleCall(
         logModuleCall(
             'zimbrasingle',
             'zimbrasingle',
             __FUNCTION__,
             __FUNCTION__,
             $productID,
             $productID,
             "Debug",
             "Debug",
-            $customFields
+            $customFieldIDs
         );
         );
         Capsule::table('tblcustomfields')
         Capsule::table('tblcustomfields')
             ->where('relid', '=', $productID)
             ->where('relid', '=', $productID)