mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Little optimization in search screen when there is only one result.
This commit is contained in:
@@ -1911,6 +1911,7 @@ class MenuBlock extends DisplayBlock
|
||||
// Check concurrent lock (can only be lock if we are handling a single object
|
||||
$bLocked = false;
|
||||
if ($iSetCount === 1) {
|
||||
$oSet->OptimizeColumnLoad(array($this->GetFilter()->GetClassAlias() => array()));
|
||||
$oObj = $oSet->Fetch();
|
||||
if (false === is_null($oObj)) {
|
||||
if (MetaModel::GetConfig()->Get('concurrent_lock_enabled')) {
|
||||
|
||||
Reference in New Issue
Block a user