mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #33020
[Bug 1553812] [NEW] ImageBrowser json failing to get right view id on upload
Public bug reported:
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
** Affects: mahara
Importance: Low
Assignee: Robert Lyon (robertl-9)
Status: In Progress
--
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:
In Progress
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
Follow ups