mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정
`$args->group_srls`가 없는 경우에만 `$args->group_srls`를 unset하도록 되어 있습니다. 하지만 노출 권한 그룹이 두개 이상 지정된 경우 `$args->group_srls`값은 array인데, array를 별도 처리 없이 쿼리에 넣으면서 문제가 생깁니다.(실제 권한이 업데이트되는 `procMenuAdminUpdateAuth` act에서는 그룹 srl값을 `,`로 implode 해주고 있습니다) 메뉴 업데이트가 이루어지는 `procMenuAdminUpdateItem` act에서는 메뉴의 편집이 이루어지지 않고, 실제 쿼리에 들어가는 `$args->group_srls` 값도 원본 메뉴 그룹 그대로이기에 업데이트 쿼리에 포함시킬 이유가 없으므로, 해당 값을 무조건 unset하도록 변경했습니다.
This commit is contained in:
parent
ee86690265
commit
72c33033f8
1 changed files with 2 additions and 5 deletions
|
|
@ -728,11 +728,8 @@ class menuAdminController extends menu
|
|||
|
||||
if($request->menu_desc) $args->desc = $request->menu_desc;
|
||||
else $args->desc = '';
|
||||
|
||||
if(count($args->group_srls) == 0)
|
||||
{
|
||||
unset($args->group_srls);
|
||||
}
|
||||
|
||||
unset($args->group_srls);
|
||||
$args->open_window = $request->menu_open_window;
|
||||
$args->expand = $request->menu_expand;
|
||||
$output = executeQuery('menu.updateMenuItem', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue