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

+ 5 - 4
zimbraAddressAvailable.php

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