Revision 54746051
Von Moritz Bunkus vor fast 10 Jahren hinzugefügt
SL/User.pm | ||
---|---|---|
124 | 124 |
$self->create_schema_info_table($form, $dbh); |
125 | 125 |
|
126 | 126 |
my $dbupdater = SL::DBUpgrade2->new(form => $form)->parse_dbupdate_controls; |
127 |
my $update_available = $dbupdater->update2_available($dbh);
|
|
127 |
my @unapplied_scripts = $dbupdater->unapplied_upgrade_scripts($dbh);
|
|
128 | 128 |
$dbh->disconnect; |
129 | 129 |
|
130 |
if (!$update_available) {
|
|
130 |
if (!@unapplied_scripts) {
|
|
131 | 131 |
SL::DB::Manager::Employee->update_entries_for_authorized_users; |
132 | 132 |
return LOGIN_OK(); |
133 | 133 |
} |
... | ... | |
142 | 142 |
$form->{dbupdate} = "db" . $::auth->client->{dbname}; |
143 | 143 |
|
144 | 144 |
if ($form->{"show_dbupdate_warning"}) { |
145 |
print $form->parse_html_template("dbupgrade/warning"); |
|
145 |
print $form->parse_html_template("dbupgrade/warning", { unapplied_scripts => \@unapplied_scripts });
|
|
146 | 146 |
::end_of_request(); |
147 | 147 |
} |
148 | 148 |
|
locale/de/all | ||
---|---|---|
1464 | 1464 |
'List of bank collections' => 'Bankeinzugsliste', |
1465 | 1465 |
'List of bank transfers' => 'Überweisungsliste', |
1466 | 1466 |
'List of custom variables' => 'Liste der benutzerdefinierten Variablen', |
1467 |
'List of database upgrades to be applied:' => 'Liste der noch einzuspielenden Datenbankupgrades:', |
|
1467 | 1468 |
'List of tax zones' => 'Liste der Steuerzonen', |
1468 | 1469 |
'List open SEPA exports' => 'Noch nicht ausgeführte SEPA-Exporte anzeigen', |
1469 | 1470 |
'Load draft' => 'Entwurf laden', |
... | ... | |
2798 | 2799 |
'To Date' => 'Bis', |
2799 | 2800 |
'To continue please change the taxkey 0 to another value.' => 'Um fortzufahren, ändern Sie bitte den Steuerschlüssel 0 auf einen anderen Wert.', |
2800 | 2801 |
'To user login' => 'Zum Benutzerlogin', |
2802 |
'Toggle details' => 'Details anzeigen/verbergen', |
|
2801 | 2803 |
'Toggle marker' => 'Markierung umschalten', |
2802 | 2804 |
'Top' => 'Oben', |
2803 | 2805 |
'Top (CSS)' => 'Oben (mit CSS)', |
templates/webpages/dbupgrade/warning.html | ||
---|---|---|
14 | 14 |
|
15 | 15 |
<input type="submit" name="dummy" value="[% 'Continue' | $T8 %]"> |
16 | 16 |
</form> |
17 |
|
|
18 |
<p id="nodetails"> |
|
19 |
<a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Toggle details') %]</a> |
|
20 |
</p> |
|
21 |
|
|
22 |
<div id="details" style="display: none;"> |
|
23 |
<p> |
|
24 |
<a href="#" onclick="$('#details,#nodetails').toggle();">[% LxERP.t8('Toggle details') %]</a> |
|
25 |
</p> |
|
26 |
|
|
27 |
<p> |
|
28 |
[% LxERP.t8("List of database upgrades to be applied:") %] |
|
29 |
</p> |
|
30 |
|
|
31 |
<ul> |
|
32 |
[% FOREACH upgrade_script = unapplied_scripts %] |
|
33 |
<li>[% HTML.escape(upgrade_script.tag) %]: [% HTML.escape(upgrade_script.description) %]</li> |
|
34 |
[% END %] |
|
35 |
</ul> |
|
36 |
</div> |
Auch abrufbar als: Unified diff
DB-Upgrade-Warnung: Einzuspielende Datenbankupgrades optional anzeigen