N°5890 - Handle locked object properly in modals

This commit is contained in:
Molkobain
2023-04-24 17:25:33 +02:00
parent 1a7f97d799
commit accd5670fe
2 changed files with 17 additions and 7 deletions

View File

@@ -2076,6 +2076,11 @@ class MenuBlock extends DisplayBlock
}
}
// Lock removal button is not supported in modals yet
if (utils::IsXmlHttpRequest()) {
$bCanKill = false;
}
if ($bCanKill) {
$this->AddMenuSeparator($aRegularActions);
$aRegularActions['concurrent_lock_unlock'] = array(