* Crosspost from http://forums.smartclient.com/forum/...n-default-mode, choose wrong forum * Apologies
Using version: v110p_2016-08-22_LGPL
Problem
Defaultvalue is ignored using a TimeItem.
Solution
Add null check on setValue of TimeItem and change to defaultValue if null
ISC_Forms.js@59730
Using version: v110p_2016-08-22_LGPL
Problem
Defaultvalue is ignored using a TimeItem.
Solution
Add null check on setValue of TimeItem and change to defaultValue if null
ISC_Forms.js@59730
Code:
var newValue = value; if (isc.isA.String(newValue)) { var timeVal = isc.Time.parseInput(newValue, true); // If it doesn't parse to a meaningful time, keep it as a string - may be // an expression or similar. if (isc.isA.Date(timeVal)) newValue = timeVal; } var setToDefault = false; if (newValue == null) { var defaultValue = this.getDefaultValue(); var undef; if (defaultValue !== undef) { newValue = defaultValue; setToDefault = true; } }
Comment