N°1276 Portal: Aligned drop-down list to autocomplete threshold behavior to console's behavior.

SVN:trunk[5255]
This commit is contained in:
Guillaume Lajarige
2018-01-16 14:24:24 +00:00
parent 0df071b4db
commit 84b98a2265

View File

@@ -88,7 +88,7 @@ class BsSelectObjectFieldRenderer extends FieldRenderer
$oCountSet = new DBObjectSet($oSearch);
$iSetCount = $oCountSet->Count();
// Note : Autocomplete/Search is disabled for template fields as they are not external keys, thus they will just be displayed as regular select.
$bRegularSelect = ( ($iSetCount <= $this->oField->GetMaximumComboLength()) || ($this->oField->GetSearchEndpoint() === null) || ($this->oField->GetSearchEndpoint() === '') );
$bRegularSelect = ( ($iSetCount < $this->oField->GetMaximumComboLength()) || ($this->oField->GetSearchEndpoint() === null) || ($this->oField->GetSearchEndpoint() === '') );
unset($oCountSet);
// - For regular select