Search returns wrong results if search string starts/ends with a space
Bug #1467271 reported by
Matthew Paul Thomas
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
Bill Filler | ||
address-book-app (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Ubuntu 15.04 r35
1. Enter three contacts into the Contacts app: "Benny", "Henry", and "Prita".
2. Search for "Henry".
3. Search for "Henry " with a space at the end.
4. Search for " Henry" with a space at the beginning.
What happens:
2. Henry is the only result shown.
3. No results are shown.
4. All the contacts *except for* Henry are shown.
What should happen:
2. Henry is the only result shown.
3. Henry is the only result shown.
4. Henry is the only result shown.
Related branches
lp://staging/~renatofilho/address-book-app/fix-1467271
- Arthur Mello (community): Approve
- PS Jenkins bot: Pending (continuous-integration) requested
-
Diff: 25 lines (+6/-2)1 file modifiedsrc/imports/Ubuntu/Contacts/ContactListModel.qml (+6/-2)
Changed in address-book-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in canonical-devices-system-image: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
milestone: | none → 12 |
assignee: | nobody → Bill Filler (bfiller) |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This bug was fixed in the package address-book-app - 0.2+16. 10.20160520- 0ubuntu1
--------------- 10.20160520- 0ubuntu1) yakkety; urgency=medium
address-book-app (0.2+16.
[ CI Train Bot ]
* Resync trunk.
[ Renato Araujo Oliveira Filho ]
* Implemented support for middle-name. (LP: #1375933, #1548783)
* Make sure that click on check box select a contact during the multi-
selection.
* Make sure that the contact list scroll to correct contact on dual
panel mode.
* Trim search term before query. (LP: #1467271)
* Update most called model to use new history API. Avoid scroll back
contact list after load it. (LP: #1488063)
-- Renato Araujo Oliveira Filho <email address hidden> Fri, 20 May 2016 14:23:10 +0000