Bug fix: don't assume that the hierachical key is called 'parent_id'

SVN:trunk[1456]
This commit is contained in:
Denis Flaven
2011-08-16 15:54:22 +00:00
parent 53a48dc8e0
commit 1e20253229

View File

@@ -392,7 +392,8 @@ EOF
$oSet = new DBObjectSet($oFilter);
}
$this->DumpTree($oPage, $oSet, 'parent_id', $currValue);
$sHKAttCode = MetaModel::IsHierarchicalClass($this->sTargetClass);
$this->DumpTree($oPage, $oSet, $sHKAttCode, $currValue);
$oPage->add('</td></tr></table>');
$oPage->add('</div>');