-
Bug
-
Resolution: Fixed
-
Minor
-
3.8.5, 3.9.2, 3.10, 4.0
-
MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_38_STABLE, MOODLE_39_STABLE
-
MDL-70139-master -
-
Moppies Kanban
It seems that some of the changes in MDL-70066 are causing this error under some circumstances.
You'll need 2 different Badgr.io US accounts and outgoing server configured (you can use mailcatcher or similar).
Steps to reproduce:
- Login as admin.
- Go to "Site administration / Badges / Badges settings" and set:
- Badge issuer name: "stable_310" (or any other value you consider)
- Badge issuer email address: email user for a Badgr.io (US) account.
- Go to "Site administration / Badges / Manage backpacks", edit https://badgr.io and add the credentials (email and password), for a valid Badbr.io account.
- Go to "Site administration / Badges / Backpack settings" and confirm the "Active external backpack" is set to "http://badgr.io".
- Create a badge and award it to some users.
- Login as some of the users awarded with the badge.
- Go to "Preferences / Badges / Backpack settings".
- Connect to the backpack using a different Badgr.io account.
- Open the verification email and open the URL to validate the account.
- Go to the profile, open the badge and click over "Add to backpack" button.
Expected behaviour
The badge is sent to the backpack and a message saying it has been sent is displayed.
Current behaviour
The following error appears:
- is a regression caused by
-
MDL-70066 Deprecated array_key_exists() on objects detected @ badges/mybadges.php
- Closed