소스 검색

try to use database

andre 4 년 전
부모
커밋
61a4e3761a
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      zimbraSingle.php

+ 8 - 1
zimbraSingle.php

@@ -801,10 +801,17 @@ function zimbraSingle_AdminServicesTabFieldsSave($params) {
         ->select('tblhostingconfigoptions.id')
         ->get();
     $addonQuotaFieldID = $addonQuotaFieldIDObj[0]->id;
+    $newAddonQuotaFieldIDObj = Capsule::table('tblproductconfigoptions')
+        ->join('tblhostingconfigoptions', 'tblproductconfigoptions.id', '=', 'tblhostingconfigoptions.configid')
+        ->where('tblhostingconfigoptions.relid', '=', $params['serviceid'])
+        ->where('tblproductconfigoptions.optionname', 'like', 'newAddonQuota%')
+        ->select('tblhostingconfigoptions.id')
+        ->get();
+    $newAddonQuotaFieldID = $newAddonQuotaFieldIDObj[0]->id;
     logModuleCall(
         'zimbrasingle',
         __FUNCTION__,
-        $params,
+        $newAddonQuotaFieldID,
         'Debug',
         $addonQuotaFieldID
     );