Fix gen_src radio-button not beingable to be selected in resources edit popup

This commit is contained in:
Hadi Nategh 2014-03-18 14:14:00 +00:00
parent 92e29ff0c4
commit 431f0f5168
2 changed files with 1 additions and 2 deletions

View File

@ -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)

View File

@ -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,