From c13fb7ce1d8cba28ae0d56802b71856b0b7995ea Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 30 Mar 2009 03:47:13 +0000 Subject: [PATCH] didn't need this, but more future-proof, RT#5083 --- FS/FS/cust_main.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 1766b4542..256eb732f 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1883,11 +1883,12 @@ sub ncancelled_pkgs { $self->custnum. "\n" if $DEBUG > 1; + $extra_qsearch->{'extra_sql'} .= ' AND ( cancel IS NULL OR cancel = 0 ) '; + @cust_pkg = qsearch({ %$extra_qsearch, 'table' => 'cust_pkg', 'hashref' => { 'custnum' => $self->custnum }, - 'extra_sql' => ' AND ( cancel IS NULL OR cancel = 0 ) ', }); } -- 2.11.0