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

The 'moodlenetprofile' missing from lib/classes/user.php:662 fill_properties_cache() functions $fields array

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE

      Description

      Hey,
      as stated in the title the 'moodlenetprofile' is missing from the array of user properties and expected parameters and so when our external api would receive a response the validation failes. 
      Given the comments before the array if it's not added, it wont be validated and it will throw the Invalid property requested error. 
      We were trying to update user records from Salesforce and it was failing when tried to validate this user field.

      // Array of user fields properties and expected parameters.        
      // Every new field on the user table should be added here otherwise it won't be validated.
      

       

      the fix is to add the moodlenetprofile to the $fields array in lib/classes/user.php:735 

      $fields['moodlenetprofile'] = array('type' => PARAMS_NOTAGS, 'null' => NULL_ALLOWED);
      

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            tamasmagyarhunor Magyar-Hunor Tamas
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: