2
0
forked from Wavyzz/dolibarr

Fix: timestamp field name problem

This commit is contained in:
Regis Houssin
2011-11-11 12:42:37 +01:00
parent 2d19624a14
commit 8f1154f400
3 changed files with 3 additions and 3 deletions

View File

@@ -245,7 +245,7 @@ class Form
$inputType=$tmp[0]; $inputOption=$tmp[1]; $inputType=$tmp[0]; $inputOption=$tmp[1];
if (! empty($tmp[2])) $savemethod=$tmp[2]; if (! empty($tmp[2])) $savemethod=$tmp[2];
$out.= '<input id="timestamp_'.$htmlname.'" type="hidden"/>'."\n"; // Use for timestamp format $out.= '<input id="timestamp" type="hidden"/>'."\n"; // Use for timestamp format
} }
else if (preg_match('/^select/',$inputType)) else if (preg_match('/^select/',$inputType))
{ {

View File

@@ -120,7 +120,7 @@ $(document).ready(function() {
autoSize: true, autoSize: true,
changeMonth: true, changeMonth: true,
changeYear: true, changeYear: true,
altField: '#timeStamp', altField: '#timestamp',
altFormat: '@' // Gives a timestamp dateformat altFormat: '@' // Gives a timestamp dateformat
}); });
}); });

View File

@@ -248,10 +248,10 @@ $(document).ready(function() {
var fk_element = $( '#fk_element_' + htmlname ).val(); var fk_element = $( '#fk_element_' + htmlname ).val();
var loadmethod = $( '#loadmethod_' + htmlname ).val(); var loadmethod = $( '#loadmethod_' + htmlname ).val();
var savemethod = $( '#savemethod_' + htmlname ).val(); var savemethod = $( '#savemethod_' + htmlname ).val();
var timestamp = $('#timestamp_' + htmlname ).val();
var ext_element = $( '#ext_element_' + htmlname ).val(); var ext_element = $( '#ext_element_' + htmlname ).val();
//var ext_table_element = $( '#ext_table_element_' + htmlname ).val(); //var ext_table_element = $( '#ext_table_element_' + htmlname ).val();
//var ext_fk_element = $( '#ext_fk_element_' + htmlname ).val(); //var ext_fk_element = $( '#ext_fk_element_' + htmlname ).val();
var timestamp = $('#timestamp').val();
return { return {
type: type, type: type,