From 0ef5825d98de6b5ed2da377a2eaa8c75bff51ec1 Mon Sep 17 00:00:00 2001 From: Sander Dorigo Date: Wed, 8 Oct 2014 21:29:28 +0200 Subject: [PATCH] Introduced a tiny bug by introducing NULL. --- app/lib/Firefly/Form/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/Firefly/Form/Form.php b/app/lib/Firefly/Form/Form.php index 9673ea9172..6414fd983e 100644 --- a/app/lib/Firefly/Form/Form.php +++ b/app/lib/Firefly/Form/Form.php @@ -195,7 +195,7 @@ class Form */ if(\Session::has('prefilled')) { $prefilled = \Session::get('prefilled'); - $value = isset($prefilled[$name]) ? $prefilled[$name] : null; + $value = isset($prefilled[$name]) && is_null($value) ? $prefilled[$name] : $value; } /*