mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
issue 2003 fix checkbox value (string to array)
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10835 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0fc5cd6c71
commit
2d285e60d1
3 changed files with 8 additions and 5 deletions
|
|
@ -396,9 +396,12 @@
|
|||
} else {
|
||||
$group_srls = Context::get($grant_name);
|
||||
if($group_srls) {
|
||||
if(strpos($group_srls,'|@|')!==false) $group_srls = explode('|@|',$group_srls);
|
||||
elseif(strpos($group_srls,',')!==false) $group_srls = explode(',',$group_srls);
|
||||
else $group_srls = array($group_srls);
|
||||
if(!is_array($group_srls))
|
||||
{
|
||||
if(strpos($group_srls,'|@|')!==false) $group_srls = explode('|@|',$group_srls);
|
||||
elseif(strpos($group_srls,',')!==false) $group_srls = explode(',',$group_srls);
|
||||
else $group_srls = array($group_srls);
|
||||
}
|
||||
$grant->{$grant_name} = $group_srls;
|
||||
}
|
||||
continue;
|
||||
|
|
|
|||
|
|
@ -30,4 +30,4 @@
|
|||
<include target="include.module_grant_setup.html" />
|
||||
<include target="include.multilang.textarea.html" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
</select>
|
||||
<div id="zone_{$grant_name}" style="display:none">
|
||||
<!--@foreach($group_list as $group_srl => $group_item)-->
|
||||
<input type="checkbox" class="checkbox" name="{$grant_name}" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
|
||||
<input type="checkbox" class="checkbox" name="{$grant_name}[]" value="{$group_item->group_srl}" id="grant_{$grant_name}_{$group_srl}" />
|
||||
<label for="grant_{$grant_name}_{$group_srl}">{$group_item->title}</label>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue