Public bug reported:

If you have:
1. a forum post and then
2. add a child post to it then
3. add a grandchild post to the child post
4. add a great-grandchild post to the grandchild post
5. delete child post

You now can't edit the grandchild post even though it has an edit button
because it's 'parent' is deleted.

The file interaction/forum/editpost.php is the page that throws up the
error:

   Not found
   The page you are looking for could not be found.

   Could not find post with id 2

You can however edit the great-grandchild post as it has a viable
'parent'.

Either you should be able to edit the child of a deleted parent - or you
shouldn't be given an edit button if you can't.

My 2 cents believes you should be able to edit an orphan child as not
having a parent is irrelevant to the text of the post that the child
displays.

** Affects: mahara
     Importance: Medium
         Status: Confirmed


** Tags: forums

-- 
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/1204309

Title:
  Edit forum post error if parent is deleted

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  If you have:
  1. a forum post and then
  2. add a child post to it then
  3. add a grandchild post to the child post
  4. add a great-grandchild post to the grandchild post
  5. delete child post

  You now can't edit the grandchild post even though it has an edit
  button because it's 'parent' is deleted.

  The file interaction/forum/editpost.php is the page that throws up the
  error:

     Not found
     The page you are looking for could not be found.

     Could not find post with id 2

  You can however edit the great-grandchild post as it has a viable
  'parent'.

  Either you should be able to edit the child of a deleted parent - or
  you shouldn't be given an edit button if you can't.

  My 2 cents believes you should be able to edit an orphan child as not
  having a parent is irrelevant to the text of the post that the child
  displays.

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to