Project

General

Profile

Actions

Bug #1278

closed

Search by age not functional when the minimum age boundary is at minimum

Added by krileon over 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
14 September 2009
Due date:
% Done:

100%

Estimated time:
1:00 h

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

1278.patch (1.23 KB) 1278.patch krileon, 04 February 2010 18:10
1278.cb.core.php.patch (1.92 KB) 1278.cb.core.php.patch beat, 13 February 2010 03:14
Actions #2

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

Actions #3

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.

Actions #4

Updated by krileon almost 15 years ago

  • Assignee changed from krileon to beat
Actions #5

Updated by krileon almost 15 years ago

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.

Actions #6

Updated by beat almost 15 years ago

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.

Actions #7

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 .

Actions

Also available in: Atom PDF