Open julesfm opened 11 months ago
This appears to be related to the new change a54ba682a4b73af116b0e01e56568d02ff1d590f in Moodle lib/amd/src/modal_factory.js dated September 8th:
This commits adds a new static `create()` method to replace the existing
ModalFactory.create approach.
This allows the creation of a modal to now be simplified to:
```js
import SomeModalClass from 'mymodule/wherever';
// ...
const modal = await SomeModalClass.create();
Prior to this change the modal was instantiated via the ModalFactory,
but the Type of modal was typically pulled from the ModalClass itself
via the registry. Essentially it used to require three modules to
instantiate a single Modal, and now it takes just one.
which sadly has broken the Tii EULA.
I'm running Moodle 4.3, which produces a warning saying the modal_factory has been deprecated (but it should still work). I'm running the latest release of turnitinsim under the Boost theme. Whenever a user tries to display the EULA, there is a JavaScript error in the console saying the above, and clicking on the "show me the eula" link appears to do nothing. There is no way therefore to accept the EULA.
Is there a quick fix please?
Thanks! Jules.