Sfoglia il codice sorgente

add customfield delete function

andre 5 anni fa
parent
commit
ae60900f32
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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(