View | Details | Raw Unified | Return to bug 6249 | Differences between
and this patch

Collapse All | Expand All

(-)a/pages/comment/CommentHandler.inc.php (-1 / +1 lines)
 Lines 92-98   class CommentHandler extends Handler { Link Here 
92
		$paper =& $this->paper;
92
		$paper =& $this->paper;
93
		$commentDao =& DAORegistry::getDAO('CommentDAO');
93
		$commentDao =& DAORegistry::getDAO('CommentDAO');
94
		$parent =& $commentDao->getById($parentId, $paperId);
94
		$parent =& $commentDao->getById($parentId, $paperId);
95
		if (isset($parent) && $parent->getPaperId() != $paperId) {
95
		if (isset($parent) && $parent->getSubmissionId() != $paperId) {
96
			Request::redirect(null, null, null, 'view', array($paperId, $galleyId));
96
			Request::redirect(null, null, null, 'view', array($paperId, $galleyId));
97
		}
97
		}
98
98

Return to bug 6249