mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +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();
|
$BF = array();
|
||||||
|
|
||||||
foreach ($this->options->get_business_fields() as $base_id) {
|
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(
|
$this->results[$sbas_id] = phrasea_query2(
|
||||||
|
Reference in New Issue
Block a user