← Back to team overview

mahara-contributors team mailing list archive

[Bug 1969720] A change has been merged

 

Reviewed:  https://reviews.mahara.org/c/mahara/+/12657
Committed: https://git.mahara.org/mahara/mahara/commit/213ab9f6631691413ffea7f2663f0d6f1a59ce09
Submitter: "Robert Lyon <robertl@xxxxxxxxxxxxxxx>"
Branch:    22.04_DEV

commit 213ab9f6631691413ffea7f2663f0d6f1a59ce09
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Tue Apr 26 15:38:09 2022 +1200

Bug 1969720 - making some off the cuff fixes to get a leap2a to import

Relating to Plans and Resume areas

Change-Id: If456d758a487b3ab63af3f25528a921f0933cd91
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
(cherry picked from commit 7d54a5662a5551fe47f12ced6bd4bd3c87062151)

-- 
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



References