소스 검색

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(