Commit 3d6807ea authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1529739: Allow group/institution pages to show on 'shared with me'



The check to exclude current user from results was checking wrong and
forcing the group/institution pages to be ignored as well.

behatnotneeded

Change-Id: Id1566b0ad202e667b8c68294967bc6bc99220659
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent a322818b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4014,7 +4014,7 @@ class View {
            ';
        $where = '';
        if ($excludeowner) {
            $where .= ' WHERE ((v.owner IS NULL OR v.owner > 0) AND v.owner != ?)';
            $where .= ' WHERE (v.owner IS NULL OR (v.owner > 0 AND v.owner != ?))';
            $whereparams[] = $excludeowner;
        }
        else {
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ Scenario: Accessing the popup window in the Copy or page or collection (Bug 1361
 Given I log in as "admin" with password "Kupuhipa1"
  And I go to "view/choosetemplate.php"
  And I follow "User Col 01"
  And I wait "1" seconds
  And I should see "User Col 01 by admin"
  And I press "Close"
  Then I should not see "User Col 01 by admin"