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

Custom fields unique status doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.3
    • Fix Version/s: 1.9.4, 2.0
    • Component/s: Administration, Usability
    • Labels:
      None
    • Environment:
      Any
    • Database:
      Any
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      When i was using custom fields, the Unique option didn't work. After searching some files, I got to /user/profile/lib.php , which defines custom fields class.
      There is a function

      function is_unique()
      {
      return (boolean)$tihs->field->forceunique;
      }

      which is supposed to return that field from the database.

      I thought correcting the mispelling of $this would fix the error. But i found something even stranger.
      There isn't any file using this function.

      Is the unique code done? Or left TODO?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Jan/09