mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-11 07:27:58 +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
|
// 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…
Reference in New Issue
Block a user