Skip to content

jQuery.exec_json으로 코멘트 추천, 비추천시 리턴값에 문제가 있습니다. #1580

@zfanta

Description

@zfanta

image
공홈에서도 확인한 결과 글을 추천한 경우 추천 갯수가 리턴되는데 코멘트의 경우에는 추천 갯수가 리턴되지 않습니다.

// Return the result
$output = new Object(0, $success_message);
if($point > 0)
{
    $output->add('voted_count', $obj->after_point);
}
else
{
    $output->add('blamed_count', $obj->after_point);
}
$output->add('point', $point);

return $output;

comment.controller.php의 updateVotedCount에 저 코드가 있고 실행도 되는데 이상하네요.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions