From 702db154fd7fd3996c67c607881627f10e864196 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be>
Date: Tue, 5 Apr 2016 06:45:31 +0200
Subject: [PATCH] Fixes #4673 Fixed ImageAttribute saving

---
 include/simpleplugin/class_attribute.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/simpleplugin/class_attribute.inc b/include/simpleplugin/class_attribute.inc
index ec9329891..ca1e478b1 100644
--- a/include/simpleplugin/class_attribute.inc
+++ b/include/simpleplugin/class_attribute.inc
@@ -1738,6 +1738,7 @@ class ImageAttribute extends FileAttribute
    */
   function loadPostValue ()
   {
+    $this->postValue = $this->value;
     if (isset($_POST['upload'.$this->getHtmlId()])) {
       parent::loadPostValue();
     }
-- 
GitLab