Browse Source

add customfield delete function

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

+ 3 - 0
zimbraSingle.php

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