fixed a bug of sending a wrong URL in review comment notification
This commit is contained in:
parent
777771a95c
commit
9774974aa9
@ -751,6 +751,7 @@ class Code extends Controller
|
||||
}
|
||||
else
|
||||
{
|
||||
$review_url = $this->input->post('code_new_review_url');
|
||||
$review_comment = $this->input->post('code_new_review_comment');
|
||||
if ($review_comment === FALSE || ($review_comment = trim($review_comment)) == '')
|
||||
{
|
||||
@ -774,7 +775,7 @@ class Code extends Controller
|
||||
'New review message #%d for r%d by %s in %s',
|
||||
$review_sno, $rev, $login['id'], $projectid
|
||||
);
|
||||
$email_message = current_url() . "\r\n" . $review_comment;
|
||||
$email_message = $review_url . "\r\n" . $review_comment;
|
||||
$this->projects->emailMessageToMembers (
|
||||
$projectid, $this->login, $email_subject, $email_message
|
||||
);
|
||||
|
@ -296,6 +296,7 @@ $(function() {
|
||||
var form_data = new FormData();
|
||||
|
||||
form_data.append ('code_new_review_comment', $('#code_revision_new_review_comment').val());
|
||||
form_data.append ('code_new_review_url', codepot_merge_path('<?php print site_url(); ?>', '<?php print "/code/revision/{$project->id}/{$hex_headpath}{$revreq}"; ?>'));
|
||||
|
||||
$('#code_revision_new_review_comment_form').dialog('disable');
|
||||
$.ajax({
|
||||
|
Loading…
Reference in New Issue
Block a user