Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed bug where search keyword crashes other menus #1459

Merged
merged 1 commit into from
Dec 15, 2015

Conversation

driusan
Copy link
Collaborator

@driusan driusan commented Dec 15, 2015

The base NDB_Menu_Filter class maintains the filters
as you go between pages. This means that if you set
a search key, and then go to a page which doesn't have
any searchKeywords fields defined, the SQL generated
becomes invalid.

This updates the code so that the filter checks if
$this->searchKeyword is set and non-empty (the field
defined by the form) instead of $this->searchKey['keyword'](the field with the user input)

The base NDB_Menu_Filter class maintains the filters
as you go between pages. This means that if you set
a search key, and then go to a page which doesn't have
any searchKeywords fields defined, the SQL generated
becomes invalid.

This updates the code so that the filter checks if
$this->searchKeyword is set and non-empty (the field
defined by the form) instead of $this->searchKey['keyword']
(the field with the user input)
@driusan driusan added the Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) label Dec 15, 2015
samirdas added a commit that referenced this pull request Dec 15, 2015
Fixed bug where search keyword crashes other menus
@samirdas samirdas merged commit 30d0f5e into aces:15.10-dev Dec 15, 2015
@christinerogers christinerogers modified the milestone: 15.10.1 Jan 8, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants