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

PositiveInt HTML_QuickForm_Rule_Regex not working for duration element

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.10
    • Forms Library
    • None
    • MOODLE_401_STABLE

      adding new rule positiveint HTML_QuickForm_Rule_Regex is giving error

      preg_match(): Argument #2 ($subject) must be of type string, array given
      

      This is because duration element is giving 2 elements for this preg_match: number and timeunit

            Unassigned Unassigned
            waleedkhalid Waleed Khalid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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