MDL-63973 core_badges: related badges query now works both ways
authorJake Dallimore <jake@moodle.com>
Thu, 15 Nov 2018 07:54:54 +0000 (15:54 +0800)
committerJake Dallimore <jake@moodle.com>
Mon, 19 Nov 2018 03:08:00 +0000 (11:08 +0800)
commit1dee827c39ee86e684ac2f33774f742b85a67155
treec7912a4b4f777a3a3cdac985da02b0226443ee09
parent01acb1ea90fe448c87c8e7d3bdca69219e6f04a3
MDL-63973 core_badges: related badges query now works both ways

If A is related to B, then we should be able to view this relationship
from both badge A and badge B. The following badge methods were updated:
- get_related_badges()
- has_related()
- delete_related_badge()
lib/badgeslib.php