mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #58881
[Bug 1885066] [NEW] "Search my Portfolio" results folder link producing warning
Public bug reported:
When the "Search my portfolio" is used to search for a file, it returns a link to a folder which should redirect to where the file can be found which is labelled "Folder" and will have an url like: http://mahara/artefact/file/index.php?folder=231
Following this link produces a warning:
[WAR] 6d (lib/form/elements/filebrowser.php:282) Undefined offset: 231
Steps to reproduce:
1. log into site as site admin and navigate to Admin menu -> Configure site -> Site options -> Side block settings -> Portfolio search (set it to yes)
2. Create a portfolio page with an image block with an image attached to it, i.e "elephant.jpg"
3. Navigate either to the portfolio page or to Pages and Collections or use (mahara/selfsearch.php)
4. In the side bar there should be the search box for "Search my portfolio" visible
5. enter "elephant" into the search results and the page should return the image as a result along with a URL "folder" (see attached screen shot)
6. click on "folder" to open the link
Expected results:
We are taken to the file page and should see the folder housing the "elephants" jpeg file, OR we are redirected to the page housing the "elephants" jpeg file with the modal with the "elephants" artefact open already.
Actual results:
We are redirected to the files page with warnings displaying (see attached screen shot)
** Affects: mahara
Importance: Undecided
Status: New
** Attachment added: "search-results-search-my-portfolio.png"
https://bugs.launchpad.net/bugs/1885066/+attachment/5386936/+files/search-results-search-my-portfolio.png
--
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/1885066
Title:
"Search my Portfolio" results folder link producing warning
Status in Mahara:
New
Bug description:
When the "Search my portfolio" is used to search for a file, it returns a link to a folder which should redirect to where the file can be found which is labelled "Folder" and will have an url like: http://mahara/artefact/file/index.php?folder=231
Following this link produces a warning:
[WAR] 6d (lib/form/elements/filebrowser.php:282) Undefined offset: 231
Steps to reproduce:
1. log into site as site admin and navigate to Admin menu -> Configure site -> Site options -> Side block settings -> Portfolio search (set it to yes)
2. Create a portfolio page with an image block with an image attached to it, i.e "elephant.jpg"
3. Navigate either to the portfolio page or to Pages and Collections or use (mahara/selfsearch.php)
4. In the side bar there should be the search box for "Search my portfolio" visible
5. enter "elephant" into the search results and the page should return the image as a result along with a URL "folder" (see attached screen shot)
6. click on "folder" to open the link
Expected results:
We are taken to the file page and should see the folder housing the "elephants" jpeg file, OR we are redirected to the page housing the "elephants" jpeg file with the modal with the "elephants" artefact open already.
Actual results:
We are redirected to the files page with warnings displaying (see attached screen shot)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1885066/+subscriptions
Follow ups