Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    [Bug]: TimeItem does not pickup defaultValue in default mode

    * 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
    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;
                }
            }

    #2
    We've made a change to address this issue. Please try the next nightly build, dated September 9.

    Regards
    Isomorphic Software

    Comment

    Working...
    X