Bug #1278
closedSearch by age not functional when the minimum age boundary is at minimum
Description
Search by age is not searching by the appropriately selected values:
http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,100931/catid,100/
Files
Updated by beat almost 15 years ago
- Status changed from New to Assigned
- Target version set to CB 1.2.2
- % Done changed from 0 to 90
- Estimated time set to 1:00 h
Kyle,
I believe this is now already fixed in the 1.2.2 pre-b1 that you have.
Could you please check ?
Thanks
Updated by krileon almost 15 years ago
Still not functioning properly. Search range set to Age 13 - 18 and result was 75, 85, 22, 19. None of those users fell within the selected range.
Updated by krileon almost 15 years ago
- File 1278.patch 1278.patch added
- % Done changed from 90 to 80
When selecting the first value or last value of the age drop-down it results in displaying all users regardless of range. This was due to usage of > or < and not >= and <=. Was causing the first and last values to pass as NULL instead of actual date.
Updated by beat almost 15 years ago
- File 1278.cb.core.php.patch 1278.cb.core.php.patch added
The proposed patch works, as it does activate both boundaries systematically. But it adds an unneeded condition on the SQL when only one boundary is specified, and does not fix the real bug, which was that ifs were exchanged.
The real issue was that the 2 if were exchanged, and then as consequence bug, the fields selection was exchanged too in age search mode only. So those are now systematically selected from last selection.
New patch attached.
Updated by beat almost 15 years ago
- Subject changed from Search by age not functional to Search by age not functional when the minimum age boundary is at minimum
- Status changed from Assigned to Closed
- % Done changed from 80 to 100
Fixed in r867 .