mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 17:40:26 +01:00
The widgetbase module was intended to be a generic search widget, despite its location in grade/amd/src. As such, other modules may depend on this. This was modified in MDL-76246, which added new requires params to the js, and changed the js to expect certain new data attributes in the templates. This broke b/c for existing dependents. This patch makes sure the existing uses of the basewidget continue to work by adding b/c code. See MDL-77991 which deals with deprecating this search widget and replacing it with one that just implements the desired combobox logic, without the b/c code. That issue should also make it abundantly clear that this widget is for public consumption.