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:36:52 +0000 (16:36 +0100)
commit29f7a9a210545af697153d95fdf50a0c81c0c3bd
tree71914196de5e0c252d1d3b69553d73336550e34b
parentc50c904c9ea10fd10b9445cc918be5ee000113df
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