ImageBrowser json failing to get right view id on upload
Bug #1553812 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Robert Lyon |
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
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/6112