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

get_string from 'core/str' has incorrect function signature

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Trivial
    • 4.2.6, 4.3.3
    • 4.1.5, 4.2.2, 4.3
    • JavaScript

    Description

      The function signature const get_string = (key, component, param, lang) implies that the parameters param and lang are required, which leads to a warning at almost every usage: "Invalid number of arguments, expected 4".

      This is pretty nit-picky, but also a really easy fix, so here it is

      Attachments

        Issue Links

          Activity

            People

              justusdieckmann Justus Dieckmann
              justusdieckmann Justus Dieckmann
              Andrew Lyons Andrew Lyons
              Jun Pataleta Jun Pataleta
              Jun Pataleta Jun Pataleta
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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