← Back to team overview

mahara-contributors team mailing list archive

[Bug 1158086] A change has been merged

 

Reviewed:  https://reviews.mahara.org/2054
Committed: http://gitorious.org/mahara/mahara/commit/20caffedfd5e20d285a61561005ce18c32d476ff
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit 20caffedfd5e20d285a61561005ce18c32d476ff
Author: Aaron Wells <aaronw@xxxxxxxxxxxxxxx>
Date:   Thu Mar 21 15:42:00 2013 +1300

(Bug #1158086) Error when deleting the child of a deleted post

After you delete, we normally redirect you to the parent of the
post you just deleted. This code change makes it check whether
the parent is deleted and fall back to the nearest un-deleted
ancestor, or just leave the post id off entirely if it can't find
one (in order to fail more gracefully).

Change-Id: I7422b3d5b466ee55899b4959dd489dd76a8d5939
Signed-off-by: Aaron Wells <aaronw@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1158086

Title:
  Forum: error after deleting a post that is the child of another
  deleted post

Status in Mahara ePortfolio:
  In Progress

Bug description:
  If you delete the child of a deleted post, it deletes successfully but
  then you're sent to a page that says "Not found. The page you are
  looking for could not be found. The post with ID '21' is not found or
  deleted!'

  It appears that what's happening is that after you delete a post it
  tries to send you to the URL for that post's parent. If the post's
  parent is deleted, then you get this error.

  To replicate:

  1. Create a forum topic
  2. In that topic, post a reply "A"
  3. Then post a reply to A, called "B"
  4. Delete A
  5. Delete B

  Expected result: You should delete B, and then see the forum with A &
  B deleted

  Actual result: You successfully delete B, but then you see a "Not
  found" error page.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1158086/+subscriptions