mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19233506 모듈 스킨설정에서 checkbox, radio, image 타입이 제대로 저장이 안되는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7784 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
89d95e2f53
commit
4ce86bf705
4 changed files with 11 additions and 9 deletions
|
|
@ -242,7 +242,7 @@
|
|||
|
||||
// 업로드 되지 않았다면 이전 데이터를 그대로 사용
|
||||
if(!$image_obj['tmp_name']) {
|
||||
$obj->{$vars->name} = $module_info->{$vars->name};
|
||||
$obj->{$vars->name} = $skin_vars[$vars->name]->value;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -125,7 +125,8 @@
|
|||
$type = $val->type;
|
||||
if($skin_vars[$name]) $value = $skin_vars[$name]->value;
|
||||
else $value = '';
|
||||
if($type=="checkbox" && !$value) $value = array();
|
||||
if($type=="checkbox") $value = $value?unserialize($value):array();
|
||||
|
||||
$skin_info->extra_vars[$key]->value= $value;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -480,7 +480,8 @@
|
|||
// 스킨 정보 필드에 메뉴 항목(stdClass)을 저장해놓은 경우가 있어
|
||||
// 1.2.0 이상 버전으로 업그레이드한 후 모듈 업데이트할 때
|
||||
// 오류가 발생하는 문제 수정
|
||||
if (is_array($val) || is_object($val)) continue;
|
||||
if (is_object($val)) continue;
|
||||
if (is_array($val)) $val = serialize($val);
|
||||
|
||||
$args->name = trim($key);
|
||||
$args->value = trim($val);
|
||||
|
|
|
|||
|
|
@ -99,18 +99,18 @@
|
|||
</select>
|
||||
|
||||
<!--@elseif($val->type=="checkbox")-->
|
||||
<!--@foreach($val->default as $k=>$v)-->
|
||||
<!--@foreach($val->options as $k=>$v)-->
|
||||
<span>
|
||||
<input type="checkbox" name="{$val->name}[]" value="{$v}" id="ch_{$key}_{$k}" <!--@if(in_array($v, $val->value))-->checked="checked"<!--@end--> class="checkbox" />
|
||||
<label for="ch_{$key}_{$k}">{$v}</label>
|
||||
<input type="checkbox" name="{$val->name}[]" value="{$v->value}" id="ch_{$key}_{$k}" <!--@if(in_array($v->value, $val->value))-->checked="checked"<!--@end--> class="checkbox" />
|
||||
<label for="ch_{$key}_{$k}">{$v->value}</label>
|
||||
</span>
|
||||
<!--@end-->
|
||||
|
||||
<!--@elseif($val->type=="radio")-->
|
||||
<!--@foreach($val->default as $k=>$v)-->
|
||||
<!--@foreach($val->options as $k=>$v)-->
|
||||
<span>
|
||||
<input type="radio" name="{$val->name}" value="{$v}" id="ch_{$key}_{$k}" <!--@if($v==$val->value)-->checked="checked"<!--@end-->/>
|
||||
<label for="ch_{$key}_{$k}">{$v}</label>
|
||||
<input type="radio" name="{$val->name}" value="{$v->value}" id="ch_{$key}_{$k}" <!--@if($v->value==$val->value)-->checked="checked"<!--@end-->/>
|
||||
<label for="ch_{$key}_{$k}">{$v->value}</label>
|
||||
</span>
|
||||
<!--@end-->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue