Fixed empty form flash name after update

This commit is contained in:
Matias Griese
2019-06-19 20:56:23 +03:00
parent a10893eaad
commit ac9ef4da76
2 changed files with 2 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ class FormFlash implements \JsonSerializable
} catch (\Exception $e) {
$data = [];
}
$this->formName = null !== $formName ? $content['form'] ?? '' : '';
$this->formName = $content['form'] ?? $formName;
$this->url = $data['url'] ?? '';
$this->user = $data['user'] ?? null;
$this->data = $data['data'] ?? null;