mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #03898
[Bug 783721] [NEW] The custom ViewACL element breaks if any items in the 'allowed' list are removed
Public bug reported:
This means that if the site admin blocks the ability to share views with
the public, the entire 'allowed' list disappears, rather than just the
public part.
What happens is json_encode() converts an array with non-contiguous keys
or those that aren't zero-based into an object, which then can't be
iterated over. The fix is to run array_merge() over the array before
json_encode() to effect a renumber.
** Affects: mahara
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/783721
Title:
The custom ViewACL element breaks if any items in the 'allowed' list
are removed
Status in Mahara ePortfolio:
New
Bug description:
This means that if the site admin blocks the ability to share views
with the public, the entire 'allowed' list disappears, rather than
just the public part.
What happens is json_encode() converts an array with non-contiguous
keys or those that aren't zero-based into an object, which then can't
be iterated over. The fix is to run array_merge() over the array
before json_encode() to effect a renumber.
Follow ups
References