Revision 9a578c8b
Von Jan Büren vor mehr als 11 Jahren hinzugefügt
sql/Pg-upgrade2/defaults_feature.pl | ||
---|---|---|
21 | 21 |
|
22 | 22 |
# check current configuration and set default variables accordingly, so that |
23 | 23 |
# kivitendo's behaviour isn't changed by this update |
24 |
# if checks are not set in config set it to true
|
|
24 |
# if checks are not set in config leave it to the default value
|
|
25 | 25 |
foreach my $check (qw(webdav vertreter parts_show_image parts_listing_image)) { |
26 | 26 |
my $check_set = $::lx_office_conf{features}->{$check} ? 1 : 0; |
27 |
$self->db_query("UPDATE defaults SET $check = ?", bind => [ $check_set ]); |
|
27 |
$self->db_query("UPDATE defaults SET $check = ?", bind => [ $check_set ]) if $check_set;
|
|
28 | 28 |
} |
29 | 29 |
|
30 | 30 |
my $update_column = "UPDATE defaults SET parts_image_css = ?"; |
Auch abrufbar als: Unified diff
Trac 2300 / 2301 zweiter Versuch
;-)