|
[F] Approve thread with attachment(s)
|
|
08-20-2008, 01:48 PM
(This post was last modified: 08-20-2008 06:44 PM by Michael S..)
Post: #1
|
|||
|
|||
|
[F] Approve thread with attachment(s)
If a forum is configured that new threads need moderation and you approve a new thread that contains an attachment the attachment is missing in the post. There's no problem with moderating new posts with attachments.
Steps to reproduce: 1. Coose in the settings of a forum to moderate new threads. 2. Post a new thread with an attachment in this forum as a normal user. 3. Approve this thread as a moderator or admin. The attachment is not shown in the post. Greets, Michael ------------- German MyBB-Site MyBBoard.de Get the german languagepack here |
|||
|
08-21-2008, 07:56 PM
Post: #2
|
|||
|
|||
|
RE: Approve thread with attachment(s)
If you have time can you do a bit more debugging:
When you post the thread (and it automatically is unapproved), is the attachment unapproved too? When you approve the thread, are you saying the attachment completely disappears (i.e. deleted) or just unapproved? Is the attachment still in the file system and the database? Thanks. MyBB is on Facebook and Twitter Hosting available, PM for details |
|||
|
08-21-2008, 11:59 PM
Post: #3
|
|||
|
|||
RE: Approve thread with attachment(s)
(08-21-2008 07:56 PM)DennisTT Wrote: When you post the thread (and it automatically is unapproved), is the attachment unapproved too?I think you mean the visible column in the database? thread = 0, attachment = 1. But in the thread table in the column attachmentcount it says 0 although I added a file. (08-21-2008 07:56 PM)DennisTT Wrote: When you approve the thread, are you saying the attachment completely disappears (i.e. deleted) or just unapproved? Is the attachment still in the file system and the database?The attachment is still in the database and in the filesystem. It's just not shown in the post. After approving the thread attachmentcount is still set to 0 in the database. Greets, Michael ------------- German MyBB-Site MyBBoard.de Get the german languagepack here |
|||
|
08-22-2008, 12:50 PM
(This post was last modified: 08-22-2008 12:51 PM by Michael S..)
Post: #4
|
|||
|
|||
|
RE: Approve thread with attachment(s)
I just changed 0 to 1 in the column attachmentcount and now the attachment is shown. The problem is that the field attachmentcount is only updated if a thread is visible. See inc/datahandlers/post.php:
PHP Code: if($visible == 1)Greets, Michael ------------- German MyBB-Site MyBBoard.de Get the german languagepack here |
|||
|
08-22-2008, 02:57 PM
Post: #5
|
|||
|
|||
|
RE: Approve thread with attachment(s)
Hm, we need to not rely on a count of 0 attachments being an actual representation of the number of attachments we have in that thread. That number is the number of approved attachments then.
![]() My Blog - My Mods |
|||
|
08-26-2008, 04:07 AM
Post: #6
|
|||
|
|||
|
[F] Approve thread with attachment(s)
Thank you for your bug report.
This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated. ![]() My Blog - My Mods |
|||
|
« Next Oldest | Next Newest »
|
Search
Member List
Calendar
Help



![[Image: ryangordon.png]](http://files.bellomandesign.com/signatures/mybb/ryangordon.png)