projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac66a75
)
Klammer um OR bei Filtern nach Projektnummer.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Tue, 27 Nov 2012 14:58:42 +0000
(15:58 +0100)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Tue, 27 Nov 2012 14:58:42 +0000
(15:58 +0100)
Fixt #2092
SL/OE.pm
patch
|
blob
|
history
diff --git
a/SL/OE.pm
b/SL/OE.pm
index
b6816c1
..
e11a749
100644
(file)
--- a/
SL/OE.pm
+++ b/
SL/OE.pm
@@
-115,11
+115,11
@@
sub transactions {
if ($form->{"projectnumber"}) {
$query .= <<SQL;
- AND (pr.projectnumber ILIKE ?) OR EXISTS (
+ AND (
(
pr.projectnumber ILIKE ?) OR EXISTS (
SELECT * FROM orderitems oi
LEFT JOIN project proi ON proi.id = oi.project_id
WHERE proi.projectnumber ILIKE ? AND oi.trans_id = o.id
- )
+ )
)
SQL
push @values, "%" . $form->{"projectnumber"} . "%", "%" . $form->{"projectnumber"} . "%" ;
}