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:
9b294be
)
Session Content: Query zum Einlesen gefixt
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 20 May 2019 14:12:29 +0000
(16:12 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Mon, 20 May 2019 14:12:55 +0000
(16:12 +0200)
Operatorpräzedenz wurde falsch berücksichtigt.
SL/Auth.pm
patch
|
blob
|
history
diff --git
a/SL/Auth.pm
b/SL/Auth.pm
index
253a847
..
9f52a37
100644
(file)
--- a/
SL/Auth.pm
+++ b/
SL/Auth.pm
@@
-635,7
+635,7
@@
sub _load_with_auto_restore_column {
my $query = <<SQL;
SELECT sess_key, sess_value, auto_restore
FROM auth.session_content
- WHERE (
auto_restore AND session_id = ?
OR sess_key IN (@{[ join ',', ("?") x keys %auto_restore_keys ]}))
+ WHERE (
session_id = ?) AND (auto_restore
OR sess_key IN (@{[ join ',', ("?") x keys %auto_restore_keys ]}))
SQL
my $sth = prepare_execute_query($::form, $dbh, $query, $session_id, keys %auto_restore_keys);