Search on "Pages and collections" doesn't work for collections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
17.04 |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
17.10 |
Fix Released
|
High
|
Unassigned |
Bug Description
Mahara master / 17.04RC1
When you try to search for a collection, the following error message is returned:
[WAR] cf (lib/errors.
LINE 1: SELECT * FROM "view_tag" WHERE view IN ()
Call stack (most recent first):
log_
log_
SQLExceptio
get_
get_
get_
View:
View:
View:
[WAR] cf (lib/dml.php:517) Failed to get a recordset: postgres8 error: [-2: ERROR: syntax error at or near ")"
LINE 1: SELECT * FROM "view_tag" WHERE view IN ()
Call stack (most recent first):
get_
get_
get_
View:
View:
View:
To replicate:
1. Set up a collection "Collection" with the tags "collectiontag" and "tag".
2. Set up a page "Page" with the tag "pagetag" and "tag".
3. Search within "Title, description" / "Title, description, tags" for "collection", "collectiontag" and "tag"
You get an error message. Expected result: It finds your page and / or collection.
Additionally, if you select to search within "Tags" but don't provide a search term, all results should be displayed.
Patch for "master" branch: https:/ /reviews. mahara. org/7625