mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #11373
[Bug 1095834] Re: Wrong result when searching for the special string: '0'
Wrong use of the empty() function causes this problem.
- !empty($query) must be replaced by isset($query) && ($query != '')
Several search functions and PHP pages need to be fixed, such as
- /json/sharedviews.php
- group_get_membersearch_data()
- institutional_admin_search_user()
- build_institutions_html()
- /selfsearch.php
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1095834
Title:
Wrong result when searching for the special string: '0'
Status in Mahara ePortfolio:
In Progress
Bug description:
Version: All
Platform: All
Browser: All
In some pages that use the function views_by_owner(), the search query
will reset to be empty when enter the string "0" in the text box for
searching.
The following pages need to be tested:
- the page "My pages" Porfolio/Pages (/view/index.php),
- the page "Institution pages" Administration/Institutions/Pages (/view/institutionviews.php)
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1095834/+subscriptions
References