mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-22 20:54:52 +00:00
keep last post data in the form values
This commit is contained in:
parent
b47b9dc900
commit
8b7141e2c1
@ -400,6 +400,12 @@ else {
|
||||
{
|
||||
// Refresh magnet data
|
||||
$magnet = $db->getMagnet($magnet->magnetId);
|
||||
|
||||
// Replace fields by last POST data
|
||||
foreach ($_POST as $key => $value)
|
||||
{
|
||||
$magnet->{$key} = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user