Revision 8e97a740
Von Jan Büren vor fast 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
1120 | 1120 |
|
1121 | 1121 |
my ($query, @values); |
1122 | 1122 |
|
1123 |
if ($form->{revtrans}) { |
|
1124 |
$query = qq|UPDATE defaults SET closedto = NULL, revtrans = '1'|; |
|
1123 |
# is currently NEVER trueish (no more hidden revtrans in $form) |
|
1124 |
# if ($form->{revtrans}) { |
|
1125 |
# $query = qq|UPDATE defaults SET closedto = NULL, revtrans = '1'|; |
|
1126 |
# -> therefore you can only set this to false (which is already the default) |
|
1127 |
# and this flag is currently only checked in gl.pl. TOOD Can probably be removed |
|
1125 | 1128 |
|
1126 |
} elsif ($form->{closedto}) { |
|
1127 | 1129 |
$query = qq|UPDATE defaults SET closedto = ?, max_future_booking_interval = ?, revtrans = '0'|; |
1128 |
@values = (conv_date($form->{closedto}), conv_date($form->{max_future_booking_interval})); |
|
1129 |
|
|
1130 |
} else { |
|
1131 |
$query = qq|UPDATE defaults SET closedto = NULL, revtrans = '0'|; |
|
1132 |
} |
|
1130 |
@values = (conv_date($form->{closedto}), conv_i($form->{max_future_booking_interval})); |
|
1133 | 1131 |
|
1134 | 1132 |
# set close in defaults |
1135 | 1133 |
do_query($form, $dbh, $query, @values); |
Auch abrufbar als: Unified diff
max_future_booking_interval auch ohne wert von $form->{closedto} schreiben
Ferner den Wert von conv_date nach conv_i überprüft und revtrans als
veraltete Überprüfung eingestuft