Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-82687

Duration form field type should only allow positive durations by default, since that's what everyone expects

XMLWordPrintable

      Inspired by MDL-82666, looking at the uses of the duration formslib field type, everyone expects that users will only input durations >= 0 but most people don't actually validate this.

      I think the duration field type should work the way everyone expects, and by default only allow positive values.

      (But, just in case anyone has a plugin relying on the old behaviour, this should be an option that can be turned off. I still think it should default to on, however, even thouh that is not strictly backwards compatible. The effect of that non-backwards-compatibility will be to fix a bunch fo subtle bugs.)

            timhunt Tim Hunt
            timhunt Tim Hunt
            Anupama Sarjoshi Anupama Sarjoshi
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.