Преглед изворни кода

add customfield delete function

andre пре 5 година
родитељ
комит
ae60900f32
1 измењених фајлова са 3 додато и 0 уклоњено
  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(