Loading...
 
Skip to main content

bug in moving a forum thread

Status
Closed
Subject
bug in moving a forum thread
Version
12.x
Category
  • Error
  • Regression
  • Usability
  • Support request
Feature
Administration
Comment
Forum
Resolution status
Fixed or Solved
Submitted by
olinuxx
Lastmod by
olinuxx
Rating
(2)
Description

hi all,

I've spotted a bug on the forums.

Here is a case scenario :

  • Lets say that I have a forum thread in forumId=1 which is constituted of one original message and 4 answers
  • and I'm moving it (as admin) to (as an example) forumId=2,
  • then I end up with being only able to see the original post (which created the thread) and the last answer


Note that if I move it back to its original location (in this case forumId=1), then I can see the full thread (original post + the 4 answers).

I did some research:
When I'm going in the data-base table "tiki-comments", the only difference I can see between the thread being in the 2 different locations (forumId=1 and forumId=2) is the number in the "object" column. This column looks to be used for indicating to which forumId the message belong to. So, if I'm changing the number of this "object" column to the relevant forumId number, then it makes it working as expected (ie: showing all the messages in the thread).

My conclusion: it looks like there is then a bug in the function used to move one thread from a forumID=x to a forumID=y, which somehow does not handle correctly the changes needed in the "object" column of the "tiki-comments" table.

Hope that helps.

Solution

Please see the third comment.

Solved in 15.x 14.x and 12.x in r57739, r57738 and r57737.

Workaround
  1. Go to the data-base table "tiki-comments"
  2. Reassign the "object" column field of the incriminated message to the relevant one
Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
5454
Created
Sunday 31 August, 2014 16:21:16 UTC
by olinuxx
LastModif
Thursday 03 March, 2016 15:37:45 UTC


Show PHP error messages