moodle-auth_saml2 icon indicating copy to clipboard operation
moodle-auth_saml2 copied to clipboard

Buttons with icons display type does not function

Open mlanth opened this issue 3 years ago • 1 comments

Buttons with icons display type does not function due to Exception.

Exception - Cannot use object of type stdClass as array
line 59 of /auth/saml2/classes/form/selectidp_buttons.php: Error thrown
line 214 of /lib/formslib.php: call to auth_saml2\form\selectidp_buttons->definition()
line 67 of /auth/saml2/selectidp.php: call to moodleform->__construct()

Seems as though this issue has been around since the following commit on June 15, 2021: https://github.com/catalyst/moodle-auth_saml2/commit/2c7d97290022cedb8d4a54dba8e2eb6cbea3a2be

The commit altered the way the metadataentities array was structured and the "selectidp_buttons" class was never updated to reflect the change.

mlanth avatar May 26 '22 14:05 mlanth

thanks for the report - feel free to help by submitting a pull request with a fix.

thanks!

danmarsden avatar May 26 '22 21:05 danmarsden