Explorar o código

do not redirect if record id has not been changed

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
46e2527c5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/edit/dns/index.php

+ 1 - 1
web/edit/dns/index.php

@@ -212,7 +212,7 @@ if ((!empty($_GET['domain'])) && (empty($_GET['record_id'])))  {
             $_SESSION['ok_msg'] = __('Changes has been saved.');
         }
 
-        if ($_GET['record_id'] != $_POST['v_record_id']) {
+        if ((empty($_SESSION['error_msg'])) && ($_GET['record_id'] != $_POST['v_record_id'])) {
             header("Location: /edit/dns/?domain=".$_GET['domain']."&record_id=".$_POST['v_record_id']);
             exit;
         }