diff options
author | ivan <ivan> | 2009-12-04 04:40:28 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-04 04:40:28 +0000 |
commit | cf49d3c860a2000cfc23a0e0db472a7d6fc58935 (patch) | |
tree | d3fa44471ab7c004f06c09ca71747b77992aa9ce /FS/FS/cust_event.pm | |
parent | 051abf85ce0cad902a6c2b0d24a6f90d4e7c5147 (diff) |
customer-specific account report (and some small refactoring of method names to clash less), RT#6180
Diffstat (limited to 'FS/FS/cust_event.pm')
-rw-r--r-- | FS/FS/cust_event.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/cust_event.pm b/FS/FS/cust_event.pm index bf3a5b7..d2fcfc1 100644 --- a/FS/FS/cust_event.pm +++ b/FS/FS/cust_event.pm @@ -315,7 +315,7 @@ sub join_sql { } -=item search_sql HASHREF +=item search_sql_where HASHREF Class method which returns an SQL WHERE fragment to search for parameters specified in HASHREF. Valid parameters are @@ -347,10 +347,10 @@ specified in HASHREF. Valid parameters are #Note: validates all passed-in data; i.e. safe to use with unchecked CGI params. #sub -sub search_sql { +sub search_sql_where { my($class, $param) = @_; if ( $DEBUG ) { - warn "$me search_sql called with params: \n". + warn "$me search_sql_where called with params: \n". join("\n", map { " $_: ". $param->{$_} } keys %$param ). "\n"; } @@ -448,7 +448,7 @@ sub process_re_X { sub re_X { my($method, $param, $job) = @_; - my $search_sql = FS::cust_event->search_sql($param); + my $search_sql = FS::cust_event->search_sql_where($param); #maybe not...? we do want the "re-" action to match the search more closely # # yuck! hardcoded *AND* sequential scans! |