DatalistentryController: temporary fix

The requested field is not available at the time given
This commit is contained in:
Thomas Gelf 2015-10-15 17:42:23 +02:00
parent 5ed1059841
commit 56072895a5
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ class Director_DatalistentryController extends ActionController
if ($edit) {
$form->loadObject(array('list_id' => $listId, 'entry_name' => $entryName));
$form->getElement('entry_name')->setAttribs(array('readonly' => true));
if ($el = $form->getElement('entry_name')) {
// TODO: Doesn't work without setup
$el->setAttribs(array('readonly' => true));
}
}
$form->handleRequest();