← Back to team overview

mahara-contributors team mailing list archive

[Bug 783721] Re: The custom ViewACL element breaks if any items in the 'allowed' list are removed

 

** 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.
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:
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/783721/+subscriptions


References