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.
Cancel link on Discussion pages
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:
I am not too sure how to modify it so that it either returns you to the proper category and/or the proper discussion.
$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;
}
}
}
0
Comments