mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #68940
[Bug 1871249] Re: Shared access with users produces a warning in 19.10 when search results count = 0
** Changed in: mahara
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1871249
Title:
Shared access with users produces a warning in 19.10 when search
results count = 0
Status in Mahara:
Fix Released
Status in Mahara 19.04 series:
Fix Released
Status in Mahara 19.10 series:
Fix Released
Bug description:
The code currently in 19.10 to share access with 'Users' will produce
a warning when the search count is 0, i.e a site that has no current
users. It's possible there are other ways to return a User search
count of 0 but this is the most reliable for testing purposes.
The warning message is:
[WAR] c4 (view/access.json.php:60) Invalid argument supplied for foreach()
To reproduce:
1. On a fresh install of Mahara 19.10 codebase with no users, create a page.
2. Navigate to "Share" and select to edit share access for the new page
3. Select "User" from dropdown box and scroll on the drop down to select a User (it will say No results found)
4. Refresh the page
Expected results:
Page displays no warnings
Actual results:
Page displays with a warning message
This is happening in 19.10 (possibly a fix needs to be applied to
earlier versions of the code). This issue didn't affect code after
19.10.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1871249/+subscriptions
References