projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6a9e007
)
Test auf Übereinstimmung mit regulären Ausdrücken in <%if...%>-Blöcken ohne Berücksic...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 1 Jul 2009 10:24:50 +0000
(12:24 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 2 Jul 2009 10:53:57 +0000
(12:53 +0200)
SL/Template.pm
patch
|
blob
|
history
diff --git
a/SL/Template.pm
b/SL/Template.pm
index
c0f54cc
..
6dce41b
100644
(file)
--- a/
SL/Template.pm
+++ b/
SL/Template.pm
@@
-384,13
+384,13
@@
sub parse_block {
if ($operator_type) {
my $compare_to = $bareword ? $self->_get_loop_variable($bareword, 0, @indices) : $quoted_word;
if ($operator_type eq '=') {
if ($operator_type) {
my $compare_to = $bareword ? $self->_get_loop_variable($bareword, 0, @indices) : $quoted_word;
if ($operator_type eq '=') {
- $hit = ($not && !($value eq $compare_to)) || (!$not && ($value eq $compare_to));
+ $hit = ($not && !($value eq $compare_to))
|| (!$not && ($value eq $compare_to));
} else {
} else {
- $hit = ($not && !($value =~ m/$compare_to/
)) || (!$not && ($value =~ m/$compare_to/
));
+ $hit = ($not && !($value =~ m/$compare_to/
i)) || (!$not && ($value =~ m/$compare_to/i
));
}
} else {
}
} else {
- $hit = ($not && ! $value) || (!$not && $value);
+ $hit = ($not && ! $value)
|| (!$not && $value);
}
if ($hit) {
}
if ($hit) {