mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 22:48:45 +02:00
N°2527 - Manage hierarchical keys in database maintenance tools
This commit is contained in:
@@ -44,8 +44,8 @@ class HierarchicalKey {
|
||||
$iMinLeft = $iParentLeft;
|
||||
|
||||
foreach ($aTreeIds as $aValues) {
|
||||
$iChildLeft = $aValues[$sLeft];
|
||||
$iChildRight = $aValues[$sRight];
|
||||
$iChildLeft = $aValues['ctrl_left'];
|
||||
$iChildRight = $aValues['ctrl_right'];
|
||||
if ($iChildLeft <= $iMinLeft || $iParentRight <= $iChildRight || $iChildRight <= $iChildLeft) {
|
||||
throw new CoreException("Wrong HK control values");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user