DirectorObjectForm: no elements for unknown vars

This commit is contained in:
Thomas Gelf 2016-03-17 02:27:06 +01:00
parent d606f00e9a
commit 6ea94dd7a2
1 changed files with 3 additions and 3 deletions

View File

@ -348,9 +348,8 @@ abstract class DirectorObjectForm extends QuickForm
}
}
// TODO Define whether admins are allowed to set those
/*
// Additional vars
foreach ($vars as $key => $value) {
// Did we already create a field for this var? Then skip it:
@ -374,6 +373,7 @@ abstract class DirectorObjectForm extends QuickForm
}
}
*/
if (/* TODO: add free var */false && $object->isTemplate()) {
$this->addElement('text', '_newvar_name', array(