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

Categories and items created in the 1.9 gradebook should require a name.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9, 2.0
    • Component/s: Gradebook
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      While I normally don't like required field, categories or items created in the gradebook should have some type of a name or title so that one can know what they are referring to after they have been created.

      Patch:
      Add this line to the file /grade/edit/tree/category_form.php after $mform->addElement('text', 'fullname', get_string('categoryname', 'grades'));

      $mform->addRule('fullname', null, 'required', null, 'client');

      That was easy. A CVS patch is attached

        Attachments

          Activity

            People

            Assignee:
            lazyfish Yu Zhang
            Reporter:
            ganderson Gary Anderson
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              3/Mar/08