Download & Extend

Invalid query is being generated in field_usergroup.inc contrib module

Project:Flexinode
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

field_usergroup.inc contrib module generates invalid query when the where clause is empty.

A check needs to be added to see if the where clause is empty, if so, "WHERE" it should not be appended to the query.

Comments

#1

Status:active» needs review

Here is a patch that works for 4.6.0 version of flexinode.

AttachmentSize
flexinode.patch_2.txt 969 bytes

#2

It seems this is also a problem in HEAD, is that correct?

Also, please do not add a ?> at the end. In Drupal we never add that ?> closing PHP tag!

Can someone please test this patch? It looks good, but I want it to be tested in a 4.6 environment with real data please.

nobody click here