From 36eae09fe0d97737076c710bd0f34cca91c1512e Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 25 Jul 2013 15:01:41 +0000 Subject: [PATCH] Fix custom image being lost when you're in the edit dialog and click Apply, Save or Apply, Apply --- resources/inc/class.resources_bo.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index d1fc33748a..ac263c921c 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -308,6 +308,7 @@ class resources_bo if($resource['own_file']['size'] > 0) { $msg = $this->save_picture($resource['own_file'],$resource['res_id']); + unset($resource['own_file']); break; } elseif(@egw_vfs::stat('/apps/resources/'.$resource['res_id'].'/'.self::PICTURE_NAME))