Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.10
-
Fix Version/s: 3.11
-
Component/s: Content bank
-
Labels:
-
Testing Instructions:
- Ensure all unit tests are passing
- Ensure you can add/edit/delete to/from contentbank
-
Affected Branches:MOODLE_310_STABLE
-
Fixed Branches:MOODLE_311_STABLE
-
Pull from Repository:
-
Pull 3.11 Branch:
MDL-69529-311 -
Pull 3.11 Diff URL:
-
Pull Master Branch:
MDL-69529-master -
Pull Master Diff URL:
-
Sprint:Moppies Kanban
Description
In several places, the Content Bank code checks the DB for specific content and then invoke a specific contenttype_XXX\contenttype and contenttype_XXX\content to operate the methods.
This code is always the same and now it is encapsulated into the methods:
- contentbank\content::get_content_type_instance
- contentbank\contentbank::get_content_from_id
For example, in functions such delete_contents, move_contents, rename_content, etc.
Attachments
Issue Links
- is blocked by
-
MDL-69270 Replace content file from content bank
-
- Closed
-