Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Cancel link on Discussion pages

edited November 2010 in Vanilla 2.0 - 2.8
Not too sure if this is a bug or not, but if I start a new discussion or edit a discussion, the cancel link brings me back to a random page that doesn't exist. The culprit is this code in /post/discussion.php:

$CancelUrl = '/vanilla/discussions';
if (C('Vanilla.Categories.Use') && $this->CategoryID > 0 && $this->CategoryData->NumRows() > 0) {
foreach ($this->CategoryData->Result() as $Cat) {
if ($Cat->CategoryID == $this->CategoryID) {
$CancelUrl = '/vanilla/discussions/0/'.$Cat->CategoryID.'/'.Gdn_Format::Url($Cat->Name);
break;
}
}
}
I am not too sure how to modify it so that it either returns you to the proper category and/or the proper discussion.
Tagged:

Comments

Sign In or Register to comment.