mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix #1162 : Some queries can be processed against business fields in case of multiple databoxes
This commit is contained in:

committed by
Romain Neutron

parent
be66d73774
commit
4947bacc26
@@ -404,7 +404,9 @@ class searchEngine_adapter_phrasea_engine extends searchEngine_adapter_abstract
|
||||
$BF = array();
|
||||
|
||||
foreach ($this->options->get_business_fields() as $base_id) {
|
||||
$BF[] = phrasea::collFromBas($base_id);
|
||||
if(phrasea::sbasFromBas($base_id) === $sbas_id) {
|
||||
$BF[] = phrasea::collFromBas($base_id);
|
||||
}
|
||||
}
|
||||
|
||||
$this->results[$sbas_id] = phrasea_query2(
|
||||
|
Reference in New Issue
Block a user