MDL-70139 core_badges: fix invalid request when sending to backpack
authorSara Arjona <sara@moodle.com>
Fri, 6 Nov 2020 14:15:45 +0000 (15:15 +0100)
committerSara Arjona <sara@moodle.com>
Fri, 6 Nov 2020 15:05:44 +0000 (16:05 +0100)
commite85c7179b29f73f4a715cdacea555c898b1656fd
tree66c20c9d13312cff2dfd50e3898208c9e2ab3b26
parentea32d651e9f41af8401bbd9fdb701d0554a82971
MDL-70139 core_badges: fix invalid request when sending to backpack

Having mixed $data in badge exporters is causing some issues.
As all these exporters are using $data as an object, $data can be
converted to object in the constructor, to avoid errors and get
the expected behaviour always.
badges/classes/external/assertion_exporter.php
badges/classes/external/badgeclass_exporter.php