"Lock blocks" doesn't work in group pages
Bug #1833664 reported by
Kristina Hoeppner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Wishlist
|
Cecilia Vela Gurovic |
Bug Description
Tested in Mahara 19.04 and master.
When you create a group page and use the "Lock blocks" functionality, the blocks still display the "Delete" button and it can be pressed. The "Delete" button should not be there at all.
To replicate:
1. Create a group.
2. Create a page in the group and set "Lock blocks" to "Yes" in the "Advanced" panel.
3. Drag a block onto the page and save it.
Expected result: You only see the "Configure" icon but not the "Delete" icon.
Actual result: You see both the "Configure" and "Delete" icons.
When a solution is found, this functionality needs to be tested also for personal, institution, and site pages to ensure that the behavior is still correct there.
Changed in mahara: | |
milestone: | none → 19.10.0 |
Changed in mahara: | |
milestone: | 19.10.0 → 20.04.0 |
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
importance: | Medium → Wishlist |
status: | Incomplete → Confirmed |
Changed in mahara: | |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
tags: | added: usermanualupdate |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Looks like the original bug to create this feature considered only personal portfolios could set the lock blocks option: /bugs.launchpad .net/mahara/ +bug/1781844
https:/
We have to decide:
- If we want to keep this lock block setting only for personal portfolios, then we need to remove the 'lock blocks' switch from the settings section for the rest of the views (group, sites, institutions)
- If we want to have the lock blocks option for all the views in the sites, then we need to fix the condition when the block is being rendered:
function render_editing in file blocktype/lib.php, when assigning a value to 'lockblocks' in smarty object