fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정#1587
Merged
2 commits merged intoJul 7, 2015
Merged
Conversation
`$args->group_srls`가 없는 경우에만 `$args->group_srls`를 unset하도록 되어 있습니다. 하지만 노출 권한 그룹이 두개 이상 지정된 경우 `$args->group_srls`값은 array인데, array를 별도 처리 없이 쿼리에 넣으면서 문제가 생깁니다.(실제 권한이 업데이트되는 `procMenuAdminUpdateAuth` act에서는 그룹 srl값을 `,`로 implode 해주고 있습니다) 메뉴 업데이트가 이루어지는 `procMenuAdminUpdateItem` act에서는 메뉴의 편집이 이루어지지 않고, 실제 쿼리에 들어가는 `$args->group_srls` 값도 원본 메뉴 그룹 그대로이기에 업데이트 쿼리에 포함시킬 이유가 없으므로, 해당 값을 무조건 unset하도록 변경했습니다.
ghost
pushed a commit
that referenced
this pull request
Jul 7, 2015
fix #1586 메뉴 노출 대상 그룹이 1개 이상일 경우 메뉴명 수정이 안되는 문제 수정
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
$args->group_srls가 없는 경우에만$args->group_srls를 unset하도록 되어 있습니다.하지만 노출 권한 그룹이 두개 이상 지정된 경우
$args->group_srls값은 array인데, array를 별도 처리 없이 쿼리에 넣으면서 문제가 생깁니다.(실제 권한이 업데이트되는procMenuAdminUpdateAuthact에서는 그룹 srl값을,로 implode 해주고 있습니다)메뉴 업데이트가 이루어지는
procMenuAdminUpdateItemact에서는 메뉴 노출 그룹 편집이 이루어지지 않고, 실제 쿼리에 들어가는$args->group_srls값도 원본 메뉴 노출 그룹 그대로이기에 업데이트 쿼리에 포함시킬 이유가 없으므로(동일 값을 그대로 사용하는데 업데이트의 의미가 없겠죠), 해당 값을 무조건 unset하도록 변경했습니다.