Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.8.5, 3.9.2, 3.10, 4.0
-
Component/s: Badges
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
Fixed Branches:MOODLE_38_STABLE, MOODLE_39_STABLE
-
Pull from Repository:
-
Pull 3.8 Branch:
MDL-70139-38 -
Pull 3.8 Diff URL:
-
Pull 3.9 Branch:
MDL-70139-39 -
Pull 3.9 Diff URL:
-
Pull 3.10 Branch:
MDL-70139-310 -
Pull 3.10 Diff URL:
-
Pull Master Branch:
MDL-70139-master -
Pull Master Diff URL:
-
Sprint:Moppies Kanban
Description
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:
Attachments
Issue Links
- is a regression caused by
-
MDL-70066 Deprecated array_key_exists() on objects detected @ badges/mybadges.php
-
- Closed
-