Skip to content

fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정#1587

Merged
2 commits merged into
xpressengine:developfrom
YJSoft:bugfix/groupsrl
Jul 7, 2015
Merged

fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정#1587
2 commits merged into
xpressengine:developfrom
YJSoft:bugfix/groupsrl

Conversation

@YJSoft

@YJSoft YJSoft commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

$args->group_srls가 없는 경우에만 $args->group_srls를 unset하도록 되어 있습니다.
하지만 노출 권한 그룹이 두개 이상 지정된 경우 $args->group_srls값은 array인데, array를 별도 처리 없이 쿼리에 넣으면서 문제가 생깁니다.(실제 권한이 업데이트되는 procMenuAdminUpdateAuth act에서는 그룹 srl값을 ,로 implode 해주고 있습니다)

메뉴 업데이트가 이루어지는 procMenuAdminUpdateItem act에서는 메뉴 노출 그룹 편집이 이루어지지 않고, 실제 쿼리에 들어가는 $args->group_srls 값도 원본 메뉴 노출 그룹 그대로이기에 업데이트 쿼리에 포함시킬 이유가 없으므로(동일 값을 그대로 사용하는데 업데이트의 의미가 없겠죠), 해당 값을 무조건 unset하도록 변경했습니다.

YJSoft added 2 commits July 7, 2015 10:33
`$args->group_srls`가 없는 경우에만 `$args->group_srls`를 unset하도록 되어 있습니다.
하지만 노출 권한 그룹이 두개 이상 지정된 경우 `$args->group_srls`값은 array인데, array를 별도 처리 없이 쿼리에 넣으면서 문제가 생깁니다.(실제 권한이 업데이트되는 `procMenuAdminUpdateAuth` act에서는 그룹 srl값을 `,`로 implode 해주고 있습니다)

메뉴 업데이트가 이루어지는 `procMenuAdminUpdateItem` act에서는 메뉴의 편집이 이루어지지 않고, 실제 쿼리에 들어가는 `$args->group_srls` 값도 원본 메뉴 그룹 그대로이기에 업데이트 쿼리에 포함시킬 이유가 없으므로, 해당 값을 무조건 unset하도록 변경했습니다.
@ghost ghost self-assigned this Jul 7, 2015
@ghost ghost added this to the next-2015-32 milestone Jul 7, 2015
ghost pushed a commit that referenced this pull request Jul 7, 2015
fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정
@ghost ghost merged commit 832b3fa into xpressengine:develop Jul 7, 2015
@YJSoft YJSoft deleted the bugfix/groupsrl branch July 7, 2015 17:21
@ghost ghost modified the milestones: next-2015-32, 1.8.5 Jul 8, 2015
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant