install_blocktype_viewtypes_for_plugin() needs to check if block still exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned |
Bug Description
If a blocktype is deleted then on upgrading to a newer version if we call install_
The install_
To test:
1) Install a 21.10 site
2) Checkout main
3) Delete a blocktype plugin from codebase, eg rm -rf htdocs/
4) Run upgrade
Without patch - get errors:
[WAR] 47 (lib/mahara.
Call stack (most recent first):
* safe_require() at htdocs/
* install_
* install_
* xmldb_core_
* upgrade_core() at htdocs/
* upgrade_mahara() at htdocs/
With patch should allow upgrade without errors
Changed in mahara: | |
milestone: | none → 22.10.0 |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/12721