diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index e0db551d3..8fcdb4cd5 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -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') {