Commit 555d82f9 authored by Robert Lyon's avatar Robert Lyon

Bug 1611518: combine_access failing for shared collection

When adding a page to a collection and they have different access rules

Change-Id: Ib45bc551309a592f8863d6ea051f26f07c4797ab
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 7c3f5646
......@@ -1395,6 +1395,7 @@ class View {
$unique = array();
foreach ($access as &$a) {
unset($a->id);
unset($a->view);
$k = serialize($a);
if (!isset($unique[$k])) {
......
......@@ -39,3 +39,22 @@ Scenario: Creating a collection AND adding pages
And I wait "1" seconds
And "Testing page 1" "link" should appear before "Testing page 2" "link"
And "Testing page 2" "link" should appear before "Testing page 3" "link"
# Sharing the collection then adding in a new page
And I choose "Shared by me" in "Portfolio"
And I follow "Edit access"
And I select "Registered users" from "accesslist[0][searchtype]"
And I press "Save"
And I choose "Pages" in "Portfolio"
And I press "Create page"
And I set the following fields to these values:
| Page title | New page |
| Page description | testing |
And I press "Save"
And I choose "Collections" in "Portfolio"
And I follow "Manage pages"
And I follow "All"
And I wait "1" seconds
And I press "Add pages"
And I follow "Done"
Then I should see "New page"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment