diff --git a/gulliver/js/grid/core/grid.js b/gulliver/js/grid/core/grid.js
index 770a6d8b9..8fda8c4c3 100644
--- a/gulliver/js/grid/core/grid.js
+++ b/gulliver/js/grid/core/grid.js
@@ -179,9 +179,9 @@ var G_Grid = function(oForm, sGridName) {
attributDefaultValue=attributes.defaultvalue;
} else {
scriptTags = oNewRow.getElementsByTagName('td')[i].getElementsByTagName('script');
- attributes = elementAttributesNS(aObjects[0]);
- if(attributes.value != undefined)
- attributDefaultValue=attributes.value;
+ attributes = elementAttributesNS(aObjects[0],'pm');
+ if(attributes.defaultvalue != undefined)
+ attributDefaultValue=attributes.defaultvalue;
else
attributDefaultValue='';
}
diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php
index 369303018..cea1a8271 100644
--- a/gulliver/system/class.xmlform.php
+++ b/gulliver/system/class.xmlform.php
@@ -3142,13 +3142,13 @@ class XmlForm_Field_Date extends XmlForm_Field_SimpleText
$sizeend = $maskleng + 2;
}
if ( $this->editable != "0") {
- $html = ''
+ $html = ''
. ' '
. '
'
. '
'
. '';
} else {
- $html = ''
+ $html = ''
. ' '
. '
'
. '
'