Skip to content

Commit

Permalink
FIX back to page on error in contact card (#29627)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvessiller-opendsi authored May 7, 2024
1 parent b44e35e commit c4ad5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htdocs/contact/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,16 +470,13 @@
$no_email = GETPOST('no_email', 'int');
$result = $object->setNoEmail($no_email);
if ($result < 0) {
$error++;
setEventMessages($object->error, $object->errors, 'errors');
$action = 'edit';
}
}

$action = 'view';
} else {
$error++;
setEventMessages($object->error, $object->errors, 'errors');
$action = 'edit';
}
}
}
Expand All @@ -489,6 +486,9 @@
header("Location: ".$backtopage);
exit;
}
$action = 'view';
} else {
$action = 'edit';
}
}

Expand Down

0 comments on commit c4ad5e0

Please sign in to comment.