diff --git a/CHANGELOG.md b/CHANGELOG.md index b296a149a..15a9415ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ 1. [](#bugfix) * Fixed error in `ImageMedium::url()` if the image cache folder does not exist + * Fixed empty form flash name after update # v1.6.10 ## 06/14/2019 diff --git a/system/src/Grav/Framework/Form/FormFlash.php b/system/src/Grav/Framework/Form/FormFlash.php index 50607822c..75ce6ebd3 100644 --- a/system/src/Grav/Framework/Form/FormFlash.php +++ b/system/src/Grav/Framework/Form/FormFlash.php @@ -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;