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

Wrong second argument in external_format_value()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • STABLE backlog
    • Resource
    • None

      The second argument of external_format_value constructor should be integer - either VALUE_OPTIONAL, VALUE_DEFAULT or VALUE_REQUIRED.

       

      In 2 cases in master it's mistakenly set as string (description):

      mod/page/classes/external.php
      191:                            'contentformat' => new external_format_value('content', 'Content format'),

       

      tag/classes/external.php
      250:                        'descriptionformat' => new external_format_value(PARAM_INT, 'tag description format'),

            Unassigned Unassigned
            tmuras Tomasz Muras
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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