mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 02:39:56 +09:00
#17630982 issuetracker 에서 자신이 작성한 글 보기 추가, 주석 이상한 것 고침
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5334 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5f6260b636
commit
462ca9d14a
3 changed files with 40 additions and 2 deletions
|
|
@ -426,5 +426,39 @@
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 아이디 클릭시 나타나는 팝업메뉴에 "작성글 보기" 메뉴를 추가하는 trigger - board 모듈과 동일
|
||||
**/
|
||||
function triggerMemberMenu(&$obj) {
|
||||
$member_srl = Context::get('target_srl');
|
||||
$mid = Context::get('cur_mid');
|
||||
|
||||
if(!$member_srl || !$mid) return new Object();
|
||||
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
||||
// 호출된 모듈의 정보 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$cur_module_info = $oModuleModel->getModuleInfoByMid($mid);
|
||||
|
||||
if($cur_module_info->module != 'issuetracker') return new Object();
|
||||
|
||||
// 자신의 아이디를 클릭한 경우
|
||||
if($member_srl == $logged_info->member_srl) {
|
||||
$member_info = $logged_info;
|
||||
} else {
|
||||
$oMemberModel = &getModel('member');
|
||||
$member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
|
||||
}
|
||||
|
||||
if(!$member_info->user_id) return new Object();
|
||||
|
||||
// 아이디로 검색기능 추가
|
||||
$url = getUrl('','mid',$mid,'act','dispIssuetrackerViewIssue','status%5B%5D','new','status%5B%5D','reviewing','status%5B%5D','assign','status%5B%5D','resolve','status%5B%5D','reopen','status%5B%5D','postponed','status%5B%5D','duplicated','status%5B%5D','invalid','search_target','user_id','search_keyword',$member_info->user_id);
|
||||
$oMemberController = &getController('member');
|
||||
$oMemberController->addMemberPopupMenu($url, 'cmd_view_own_document', './modules/member/tpl/images/icon_view_written.gif');
|
||||
|
||||
return new Object();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue