keep last post data in the form values

This commit is contained in:
ghost 2023-08-30 20:19:21 +03:00
parent b47b9dc900
commit 8b7141e2c1

View File

@ -400,6 +400,12 @@ else {
{ {
// Refresh magnet data // Refresh magnet data
$magnet = $db->getMagnet($magnet->magnetId); $magnet = $db->getMagnet($magnet->magnetId);
// Replace fields by last POST data
foreach ($_POST as $key => $value)
{
$magnet->{$key} = $value;
}
} }
} }