BUG 000 Add validation in the hierachy modes when mode of the field are blank
This commit is contained in:
@@ -136,6 +136,9 @@ class XmlForm_Field {
|
||||
if ($ownerMode != '') {
|
||||
$this->mode = $ownerMode;
|
||||
}
|
||||
if ($this->mode == '') {
|
||||
$this->mode = 'edit';
|
||||
}
|
||||
$this->modeForGrid = $this->mode;
|
||||
}
|
||||
|
||||
@@ -3216,6 +3219,10 @@ class XmlForm_Field_Grid extends XmlForm_Field
|
||||
$this->mode = $ownerMode;
|
||||
}
|
||||
|
||||
if ($this->mode == '') {
|
||||
$this->mode = 'edit';
|
||||
}
|
||||
|
||||
$this->modeForGrid = $this->mode;
|
||||
|
||||
if ($this->mode == 'view') {
|
||||
|
||||
Reference in New Issue
Block a user