diff options
author | jeff <jeff> | 2010-09-22 06:36:20 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-09-22 06:36:20 +0000 |
commit | 60ee9af0e885def0dd61f4a5506ac0e55d779e89 (patch) | |
tree | 562d39aec1bc815df969631837dddc8e3c8daf2e /FS | |
parent | 48b9b91fd6a5476ab4861708894b992e5844bcac (diff) |
avoid unexpected side effects when using 'op' => '>' in qsearch
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Record.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 6b05d2dac..4f0984c74 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -350,7 +350,8 @@ sub qsearch { my @bind_type = (); my $dbh = dbh; foreach my $stable ( @stable ) { - my $record = shift @record; + #stop altering the caller's hashref + my $record = { %{ shift(@record) || {} } };#and be liberal in receipt my $select = shift @select; my $extra_sql = shift @extra_sql; my $extra_param = shift @extra_param; |