From 431f0f51681dc9eb93bfb83f3f05574bfed8738e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 18 Mar 2014 14:14:00 +0000 Subject: [PATCH] Fix gen_src radio-button not beingable to be selected in resources edit popup --- resources/inc/class.resources_bo.inc.php | 2 +- resources/inc/class.resources_ui.inc.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/inc/class.resources_bo.inc.php b/resources/inc/class.resources_bo.inc.php index 2fbfc3561a..c2ea4a4709 100755 --- a/resources/inc/class.resources_bo.inc.php +++ b/resources/inc/class.resources_bo.inc.php @@ -323,7 +323,7 @@ class resources_bo case 'cat_src': break; case 'gen_src': - $resource['picture_src'] = $resource['gen_src_list']; + $resource['picture_src'] = 'gen_src'; break; default: if($resource['own_file']['size'] > 0) diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index 2a650e9403..580a119cc5 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -477,7 +477,6 @@ class resources_ui if ($res_id > 0) { $content = $this->bo->read($res_id); - $content['gen_src_list'] = strpos($content['picture_src'],'.') !== false ? $content['picture_src'] : false; $content['picture_src'] = strpos($content['picture_src'],'.') !== false ? 'gen_src' : $content['picture_src']; $content['link_to'] = array( 'to_id' => $res_id,