Browse Source

keep last post data in the form values

main
ghost 1 year ago
parent
commit
8b7141e2c1
  1. 6
      src/public/edit.php

6
src/public/edit.php

@ -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;
}
} }
} }

Loading…
Cancel
Save