瀏覽代碼

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(