Unable to update site template as expected

Bug #1805517 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Unassigned
17.10
Fix Released
High
Unassigned
18.04
Fix Released
High
Unassigned
18.10
Fix Released
High
Unassigned
19.04
Fix Released
High
Robert Lyon

Bug Description

If I go to edit the site 'dashboard' template and delete the 'My portfolios' block I am unable to add it again.

This is because there are certain blocks like the 'My portfolios' one that are only allowed on user pages.

We should change this so that the blocks are allowed to be added to the page type 'dashboard' and or 'profile'

Revision history for this message
Robert Lyon (robertl-9) wrote :

This seems to be a problem created when we allowed the editing of site templates

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/9340

Revision history for this message
Steven (stevens-q) wrote :

Environment tested: Master
Browser tested: Chrome

Preconditions:
------------------------
1. Site admin user exists
2. regular user exists (not admin)
3. Dashboard template exists
4. Profile template exists

Test Steps:
------------------------
1. Log in as Site admin
2. Browse to Admin menu > Configure site > Pages and collections
3. Verify
Dashboard and Profile templates are displayed
4. Edit the Dashboard template and click the Personal info
5. Verify that the Personal info section contains the block options as follows
 a. My friends
 b. My groups
 c. My portfolios
 d. Watched pages
6. Delete the existing My portfolios block and add it back again to the page
7. Add the
My groups, My friends and Watched pages blocks to the page
8. create a new user and log in as that user
9. Browse to the Dashboard (you should be on it anyways)
10. Verify that the 4 blocks My friends, My groups and My portfolios are displayed
11. Log back in as Site admin
12. Browse to Admin menu > Configure site > Pages and collections
13. Edit the Profile template and click the Personal info
14. Verify that the Personal info section contains the Wall block option
15. Add the wall option to the profile page template
16. log in as the new user created earlier and browse to the profile page
17. Verify that the Wall block is displayed

Catalyst QA Approved ✔

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9340
Committed: https://git.mahara.org/mahara/mahara/commit/6c0d6a8447ff0c30d5360e5cbbb513d72b3dc4c9
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: master

commit 6c0d6a8447ff0c30d5360e5cbbb513d72b3dc4c9
Author: Robert Lyon <email address hidden>
Date: Wed Nov 28 12:43:48 2018 +1300

Bug 1805517: Allow special profile/dashboard blocks in edit for templates

Currently when setting up a dashboard/profile template we can't
add/re-add certain blocks if they have been deleted

behatnotneeded

Change-Id: I2bd95b1fb67357994b2ff43356387b18b0644d97
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/9343

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9343
Committed: https://git.mahara.org/mahara/mahara/commit/2bddf9baccd1714fb2a80398bba77f8b7c14ffaa
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 18.10_STABLE

commit 2bddf9baccd1714fb2a80398bba77f8b7c14ffaa
Author: Robert Lyon <email address hidden>
Date: Wed Nov 28 12:43:48 2018 +1300

Bug 1805517: Allow special profile/dashboard blocks in edit for templates

Currently when setting up a dashboard/profile template we can't
add/re-add certain blocks if they have been deleted

behatnotneeded

Change-Id: I2bd95b1fb67357994b2ff43356387b18b0644d97
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 6c0d6a8447ff0c30d5360e5cbbb513d72b3dc4c9)

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "18.04_STABLE" branch: https://reviews.mahara.org/9344

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9344
Committed: https://git.mahara.org/mahara/mahara/commit/125c21b78d93af75e88c54652f4afea15ae12d11
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 18.04_STABLE

commit 125c21b78d93af75e88c54652f4afea15ae12d11
Author: Robert Lyon <email address hidden>
Date: Wed Nov 28 12:43:48 2018 +1300

Bug 1805517: Allow special profile/dashboard blocks in edit for templates

Currently when setting up a dashboard/profile template we can't
add/re-add certain blocks if they have been deleted

behatnotneeded

Change-Id: I2bd95b1fb67357994b2ff43356387b18b0644d97
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 6c0d6a8447ff0c30d5360e5cbbb513d72b3dc4c9)
(cherry picked from commit 2bddf9baccd1714fb2a80398bba77f8b7c14ffaa)

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "17.10_STABLE" branch: https://reviews.mahara.org/9345

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/9345
Committed: https://git.mahara.org/mahara/mahara/commit/b57eb3111d0a1f5173fca58cd11bb62c4979e8ac
Submitter: Cecilia Vela Gurovic (<email address hidden>)
Branch: 17.10_STABLE

commit b57eb3111d0a1f5173fca58cd11bb62c4979e8ac
Author: Robert Lyon <email address hidden>
Date: Wed Nov 28 12:43:48 2018 +1300

Bug 1805517: Allow special profile/dashboard blocks in edit for templates

Currently when setting up a dashboard/profile template we can't
add/re-add certain blocks if they have been deleted

behatnotneeded

Change-Id: I2bd95b1fb67357994b2ff43356387b18b0644d97
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit 6c0d6a8447ff0c30d5360e5cbbb513d72b3dc4c9)
(cherry picked from commit 2bddf9baccd1714fb2a80398bba77f8b7c14ffaa)
(cherry picked from commit 125c21b78d93af75e88c54652f4afea15ae12d11)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.