Project

General

Profile

Actions

Bug #1279

closed

Lists advanced search: Search any of a single-drop-down field but selecting empty line in multi-select field gives invalid SQL query

Added by krileon over 14 years ago. Updated about 14 years ago.

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

100%

Estimated time:
3:00 h


Files

1279_unified.patch (737 Bytes) 1279_unified.patch Unified Patch krileon, 28 January 2010 00:32
1279-plugin.class.php.patch (648 Bytes) 1279-plugin.class.php.patch beat, 28 January 2010 01:09
Actions #1

Updated by beat over 14 years ago

  • Target version set to CB 1.2.2
Actions #2

Updated by beat about 14 years ago

  • Estimated time set to 3:00 h
Actions #3

Updated by krileon about 14 years ago

  • File 1279.patch added
  • Status changed from New to Assigned
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 80

The issue was with the building of the query checking for != '' instead of !== null, as blanks are permitted. This caused it to place an empty AND inside of the query. Function reduceSqlFormula in plugin.class.php.

Actions #4

Updated by krileon about 14 years ago

  • File deleted (1279.patch)
Actions #5

Updated by krileon about 14 years ago

  • File deleted (1279.patch)
Actions #7

Updated by beat about 14 years ago

  • Subject changed from Multi select drop down error to Lists advanced search: Search any of a single-drop-down field but selecting empty line in multi-select field gives invalid SQL query
  • Status changed from Assigned to Closed
  • % Done changed from 80 to 100

Not agreeing with the patch, as it gives wrong results, allowing selection of the empty row generating '' and wrong results.

Enclosed another patch, which gives expected behavior.

Committed in r848 .
(after 1.2.2 beta 1)

Actions

Also available in: Atom PDF