From 5cff267423f15df8001f0dcb80def514031a9167 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Tue, 10 Jul 2012 19:03:02 -0400 Subject: [PATCH] BUG 000 Add validation in the hierachy modes when mode of the field are blank --- gulliver/system/class.xmlform.php | 7 +++++++ 1 file changed, 7 insertions(+) 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') {