Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.4-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2007 at 11:26 UTC
Updated:
4 Feb 2007 at 23:30 UTC
The check to see if DISTINCT is already set uses the wrong substr() length:
- if (count($this->fields) && substr($this->fields[0], 0, 7) != 'DISTINCT') {
+ if (count($this->fields) && substr($this->fields[0], 0, 8) != 'DISTINCT') {
This problem exists in all versions I've looked at. The bug was originally reported as part of the views_fast_search module as 108713.
The patch is rather simple (change 7 to 8). A 4.7 patch is attached to the original bug report (108713) and here.
Comments
Comment #1
merlinofchaos commentedFixed, thanks for the report!
Comment #2
(not verified) commented