Skip to content
Snippets Groups Projects
Commit 27430f98 authored by Jared Hancock's avatar Jared Hancock
Browse files

forms: Fix display of validation errors

When managing properties of list items
parent 524dcaa9
No related branches found
No related tags found
No related merge requests found
......@@ -46,13 +46,18 @@ class DynamicForm extends VerySimpleModel {
var $_dfields;
function getFields($cache=true) {
if (!isset($this->_fields) || !$cache) {
$this->_fields = array();
if (!$cache)
$fields = false;
else
$fields = &$this->_fields;
if (!$fields) {
$fields = new ArrayObject();
foreach ($this->getDynamicFields() as $f)
// TODO: Index by field name or id
$this->_fields[$f->get('id')] = $f->getImpl($f);
$fields[$f->get('id')] = $f->getImpl($f);
}
return $this->_fields;
return $fields;
}
function getDynamicFields() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment