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

Max sections limit error message doesn't show number of sections

XMLWordPrintable

      The error message for when the maximum number of sections is reached reads:

      Cannot create new section as it would exceed the maximum number of sections allowed for this course ({$a}).

      The {$a} should instead be the maximum number of allowed sections.

      It looks like in /course/format/classes/stateactions.php function section_add() the line:

      throw new moodle_exception('maxsectionslimit', 'moodle', $maxsections);

      should be:

      throw new moodle_exception('maxsectionslimit', 'moodle', '', $maxsections);

       

            pholden Paul Holden
            james-cnz James E. Calder
            Pedro Jordao Pedro Jordao
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 39 minutes
                1h 39m

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