diff --git a/import.php b/import.php index 2cde227..4182cda 100755 --- a/import.php +++ b/import.php @@ -848,6 +848,11 @@ if ($action == 'addmissingprices' && $id > 0) { if ($errorCount > 0) { setEventMessages($addedCount.' hinzugefuegt, '.$errorCount.' Fehler', null, 'warnings'); } + + // Redirect to avoid "Form resubmit" warning on page reload + $redirectUrl = $_SERVER['PHP_SELF'].'?id='.$id; + header('Location: '.$redirectUrl); + exit; } else { setEventMessages('Keine Preise ausgewählt', null, 'warnings'); } @@ -1762,6 +1767,11 @@ if ($action == 'createallfromdatanorm' && $id > 0) { $import->status = ZugferdImport::STATUS_IMPORTED; $import->update($user); } + + // Redirect to avoid "Form resubmit" warning on page reload + $redirectUrl = $_SERVER['PHP_SELF'].'?id='.$id; + header('Location: '.$redirectUrl); + exit; } $action = 'edit'; $import->fetch($id); @@ -2950,12 +2960,11 @@ if ($action == 'edit' && $import->id > 0) { print ''.$langs->trans('DatanormPreview'); print ' '.count($datanormPreviewMatches).' '.$langs->trans('Matches').''; - // Filter: Kabel ausblenden (in eigenem Form für sofortiges Submit) + // Filter: Kabel ausblenden (als GET-Parameter für Reload-Sicherheit) $hideCables = GETPOST('hide_cables', 'int'); $checked = $hideCables ? ' checked' : ''; print '
'; - print '
'; - print ''; + print ''; print ''; print ''; print '