-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not any last poster name in forumdisplay after splitting a/some post(s) #870
Comments
Fixes #870 Not any last poster name in forumdisplay after splitting a/some post(s)
There is a similar bug in 1.6 (added label), see my first comment in the merged PR. My and martec's code fixes it. |
@Destroy666x I am confused. Where's the PR for 1.6? |
@PirataNervo, there is no PR for 1.6, that's why I added a comment and a label. |
Right, I'll add it then. |
PR created, should fix it. I've used the same things as the PR for 1.8 except for a line which was already there. |
Fixes #870 Not any last poster name in forumdisplay after splitting a/some post(s) (master)
Fixes mybb#870 Not any last poster name in forumdisplay after splitting a/some post(s)
Replaced the fix by c5feb8b which fixes the original code instead of adding new code.
@PirataNervo I recommend to review the fix for 1.6 as it seams to have the same issues. Actually I wasn't able to reproduce the issue at all. |
@stefan-st |
update_last_post($tid) does that? |
@stefan-st |
@stefan-st, your fix works and is better but could you tell me when $pids aren't sorted by dateline ASC? They always seemed to be for me. |
@Destroy666x It's up to the database engine as the query in moderation.php doesn't specify any sorting: $query = $db->simple_select("posts", "pid", "tid='$tid'"); Mostly the database returns the data in chronological order but it's not safe to rely on that. Using the merge system or some database operations may result in a different order. Not specifying the order has already caused issues in the past: http://dev.mybb.com/issues/2017 |
Oh ok, thanks for explantation. EDIT: but why is $pids[0] used for first post then? Doesn't the same apply to this? I'm confused. |
@Destroy666x I don't know. :P But it may cause (minor) problems in some rare cases. @PirataNervo @JordanMussi @Destroy666x Can anybody tell me how to reproduce this issue in 1.6.14? I can't and the fix (#934) makes not much sense to me. |
@Stefan-S, why wasn't that fixed too then? As for 1.6, I'm quite positive it showed me wrong lastposter in new thread when I splitted posts that weren't made by old thread's last poster. But I couldn't reproduce it on http://community.mybb.com now so I may have missed something. |
@stefan-st I can't remember to be honest.. |
…itting a/some post(s) (master)"
@Destroy666x It wasn't fixed because nobody ever noticed the problem. ;) Feel free to create a ticket for it. I've reverted #934 now as long as nobody can provide steps to reproduce the issue. |
@stefan-st |
I can't seem to understand if both PRs were reverted. |
They were and a simplier fix was applied by Stefan. Which seems to work fine in 1.6 and 1.8 so this can be closed. |
If in one thread i use split posts, after check last poster in forumdisplay not apper any user in last post.
I suggested to @jvdabz to create one thread only with this issue... but him not created. http://community.mybb.com/thread-154453-...pid1078247
So i created this thread.
So all credits to @jvdabz.
Original thread: Not any last poster name in forumdisplay after splitting a/some post(s)
The text was updated successfully, but these errors were encountered: