Commit Graph

7 Commits

Author SHA1 Message Date
Alexis Degrugillier
d229216ccc Split the search into values
Before, the search was a single value.
Now it is splited in chuncks when separated by spaces.
Except if they are enclosed by single quotes or double quotes.

For some reasons, the unit tests are working for both single and double quotes but the
search box isn't. It is working only with single quotes.
We need to investigate the reason of this behavior.

See #823
2015-04-22 00:24:22 -04:00
Alexis Degrugillier
74c020edc8 Add a default string representation
In some part of the code, the search is displayed as is and crash since there is no way to display the search object as a string.
2015-02-21 09:47:40 -05:00
Alexis Degrugillier
50b6a02578 Add search default raw value
Before, the default value was undefined. Now it always has a value even when no value is provided.
2015-02-21 09:46:25 -05:00
Alexis Degrugillier
f5028d30d0 Add required library
The lib_date.php library was missing in the Search object file. It is required to make date conversion in that object.
2015-02-21 09:45:19 -05:00
Alexis Degrugillier
9f83aa5fe7 Refactor the code to make less unnecessaty calls
There were multiple calls made to the cleaning method that were unnecessary since it is useful only on the last call.
It allows to simplify code by returning values ealier.
2015-02-12 21:05:33 -05:00
Alexis Degrugillier
9cee5c1a17 Remove code generated by netbeans 2015-02-11 21:52:10 -05:00
Alexis Degrugillier
f30ded2f86 Extract the search code from the context
I figured that the code for the search could be extracted from the context to have separation of concern.
It supports multiple keywords. It suports also multiple tag keywords.
2015-02-11 21:49:21 -05:00