andre 4 лет назад
Родитель
Сommit
358e5448fc
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      zimbraAddressAvailable.php

+ 9 - 1
zimbraAddressAvailable.php

@@ -62,12 +62,20 @@ $customfieldIDsObj = Capsule::table('tblcustomfields')
 foreach ($customfieldIDsObj as $customfieldID) {
 	array_push($customfieldIDs, $customfieldID->id);
 }
+$customfieldsvalues = array();
+$customfieldsvaluesObj = Capsule::table('tblcustomfieldsvalues')
+	->select('value')
+	->where('relid',$hostingIDs)
+	->where('fieldid', $customfieldIDs)
+	->get()
+	->toArray();
+
 logModuleCall(
 	'zimbrasingle',
 	__FUNCTION__,
 	$zmAuthPIDs,
 	'debug',
-	$customfieldIDs
+	$customfieldsvaluesObj
 );