[freeside-devel] Bug In Record.pm

Ryan Gunn rgunn at wansol.net
Sun Jul 2 19:46:50 PDT 2006


Hi, just wanted to let everyone know that there appears to be a bug in
Record.pm

 

On line 265 there is an if statement .

            

            if ( @real_fields or @virtual_fields ) {

 

Then on line below that (266) there is a join statement which appears to
join SQL generated for @real_fields and @virtual_fields

 

When there is no @virtual_fields it creates an   AND ( )  at the end of the
query and causes a runtime error about the SQL syntax being incorrect

 

Also I think that it should probably be joined by  OR  instead of  AND

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-devel/attachments/20060702/4389403b/attachment.htm


More information about the freeside-devel mailing list