Parcourir la source

add customfield delete function

andre il y a 5 ans
Parent
commit
ae60900f32
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      zimbraSingle.php

+ 3 - 0
zimbraSingle.php

@@ -97,6 +97,9 @@ function zimbraSingleCreateCustomFields($packageconfigoption)
 {
     $whmcs = App::self();
     $productID = $whmcs->get_req_var('id');
+    Capsule::table('tblcustomfields')
+        ->where('relid', '=', $productID)
+        ->delete();
     try {
         Capsule::table('tblcustomfields')
         ->insert(