Skip to content

fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정#2292

Merged
1 commit merged into
xpressengine:developfrom
YJSoft:fix/deletememo
Aug 31, 2018
Merged

fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정#2292
1 commit merged into
xpressengine:developfrom
YJSoft:fix/deletememo

Conversation

@YJSoft

@YJSoft YJSoft commented Aug 29, 2018

Copy link
Copy Markdown
Contributor

관리자가 회원 메모를 비우면 NULL이 넘어가서 메모가 변경되지 않는 문제점을 수정합니다.

if(!$args->description) $args->description = $orgMemberInfo->description;

// BUGFIX 관리자가 회원 메모를 삭제할수 없는 문제 수정 https://github.com/xpressengine/xe-core/issues/2290
if(!isset($args->description)) $args->description = $orgMemberInfo->description;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

결국은 기존 내용을 그대로 비슷하게 검사하는 것으로 보여집니다.

그냥 isset으로 내용이 설정이 안되어있다면 내용을 null으로 만들어서 빈값으로 들어가도록 하는것은 어떤가요?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bjrambo XML 쿼리에서는 null을 넣으면 아예 해당컬럼을 UPDATE문에서 빼버리지 않나요?

@bjrambo bjrambo Aug 29, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kijin 아.. 그렇네요.. 시리얼라이즈 스트링으로 만든 값을 저장하는 방식이랑 착각 했습니다.. 어찌되었던 빈 스트링값이라도 넘겨야할것 같아요.

@ghost ghost self-assigned this Aug 30, 2018
@ghost ghost added the type/bug label Aug 30, 2018
@ghost ghost added this to the 1.9-next milestone Aug 30, 2018
@YJSoft YJSoft changed the title fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정 [WIP] fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정 Aug 30, 2018
관리자 화면에서 회원 메모를 비우면 NULL이 넘어와 기존값이 사용되는 문제점 고침
@YJSoft YJSoft changed the title [WIP] fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정 fix #2290 관리자가 회원 메모를 삭제할수 없는 문제 수정 Aug 30, 2018
@ghost ghost merged commit 1c0ca4d into xpressengine:develop Aug 31, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants