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 Bug
    • Status: Closed
    • Priority: Minor 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

        Activity

        Hide
        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
        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
        Tim Hunt added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: