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

Not necessari condition in core_course_create_categories (of $category['name'])

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3
    • None
    • Web Services
    • None
    • MOODLE_23_STABLE

    Description

      In the Web Service core_course_create_categories appears the condition:

      // Check name.
      if (textlib::strlen($category['name'])>30) {
      throw new moodle_exception('categorytoolong');
      }

      I think that isn't necessari because the field in BD is varchar(255).

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              lewis.carroll David
              Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: