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

custom user profile fields : in a list box field if one of the admin chosen values has an apostrophe in it it breaks the query to update / save the value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.4
    • Fix Version/s: 1.9.5
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Gliffy Diagrams

        Attachments

          Activity

          Hide
          jamiesensei Jamie Pratt added a comment -

          Need to addslashes to values after converting the id to a string and before trying to put it in db.

          As in 2.0 we no longer need to addslashes.

          Show
          jamiesensei Jamie Pratt added a comment - Need to addslashes to values after converting the id to a string and before trying to put it in db. As in 2.0 we no longer need to addslashes.
          Hide
          timhunt Tim Hunt added a comment -

          Reviewed code and tested. It all looks good. Thanks Jamie.

          Show
          timhunt Tim Hunt added a comment - Reviewed code and tested. It all looks good. Thanks Jamie.

            People

            • Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              jamiesensei Jamie Pratt
              Tester:
              Tim Hunt
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/09