N°2527 - Manage hierarchical keys in database maintenance tools

This commit is contained in:
Eric Espie
2021-10-04 11:34:19 +02:00
parent eb239843aa
commit 8c39374abb
7 changed files with 81 additions and 17 deletions

View File

@@ -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");
}