← Back to team overview

mahara-contributors team mailing list archive

[Bug 1553812] Re: ImageBrowser json failing to get right view id on upload

 

** Changed in: mahara
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1553812

Title:
  ImageBrowser json failing to get right view id on upload

Status in Mahara:
  Fix Committed

Bug description:
  When we add a text block to a page and click the image icon to add an
  image it passes the view id to the ImageBrowser object from the 'id'
  parameter. But when we go to upload an image in the 'Insert or select
  an image ' config popup it passes the view id with 'view' parameter.

  In core mahara this causes no issue, but is wrong. In a custom site
  where the View construct does some extra checking it breaks things as
  on upload the view id is being passed in as 0, rather the correct id.

  We need to get the initial popup to pass in the view id as 'view'
  rather than 'id' so that the json file can handle the information
  correctly

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


References