Reviewed: https://reviews.mahara.org/c/mahara/+/12656 Committed: https://git.mahara.org/mahara/mahara/commit/367c04b86844b3386bd49ec347b9f2ace9df1217 Submitter: "Robert Lyon <[email protected]>" Branch: 22.04_DEV
commit 367c04b86844b3386bd49ec347b9f2ace9df1217 Author: Doris Tam <[email protected]> Date: Tue Apr 26 11:57:33 2022 +1200 Bug 1969720: Ease the check on profile field: $data On importing profile fields from Leap2A, an array is passed in but on updating profile fields, an Object is passed in. Change-Id: I12a6512fe629fcfe23c2efb22c213db7b6464a3f (cherry picked from commit 1a04a3cba05e456a64b40fa1b873825380862f78) -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: mahara-contributors https://bugs.launchpad.net/bugs/1969720 Title: Leap2A import fails (profile fields) Status in Mahara: Fix Committed Bug description: When a new account is created with a previously exported file from the same site (and also a different one), I get the following error message: [WAR] 37 (lib/errors.php:537) Data array supplied when object expected at /var/www/master-dev-prod-mahara/releases/20220420173606/artefact/internal/lib.php:450 Call stack (most recent first): exception(object(MaharaException)) at Unknown:0 With an export of the 'student' account from the demo site https://demo.mahara.org, I get a lot more warnings (see attached). 1. Log in as Admin 2. Add a new user via Leap2A file (or a combined export if you have a more recent site). 3. Fill in a username and password 4. Click “Create account” button Results: - Expected: A new account is crated and found in the 'People search'. - Actual: Error from above and attached. Issue: We are throwing an error when $data is not an object when updating profile fields but the $data comes in as an Array when we import a Leap2a file with profile field updates. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1969720/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

