Needs work
Project:
Forum
Version:
1.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Apr 2011 at 18:45 UTC
Updated:
24 Apr 2024 at 01:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
droplet commentedComment #2
droplet commented#1: forum.patch queued for re-testing.
Comment #3
droplet commentedComment #4
dnewkerk commentedTested and confirm it worked on Drupal 7.8. How can I help get this into the next D7 release? I've never tried installing D8 yet, but if that would help let me know.
Comment #5
Anonymous (not verified) commented@Keyz, yes, please test it on D8 and report back here. I've looked at the code and it's a simple fix that makes sense, so if it works for you on D8, mark this issue as RTBC. Thanks!
Comment #6
dnewkerk commentedTested in Drupal 8.x-dev and works perfectly. As mentioned, it also works perfect in Drupal 7.8.
Comment #7
chx commentedHow could this slip through testing? Does this mean the forum moving is not tested?
Comment #8
droplet commentedwant to see testbot comment :)
Comment #9
droplet commentedComment #10
droplet commentedwill add a test later.
Comment #11
yurtboy commentednot sure if this helps, I was testing the patch at http://drupal.org/node/1578998#comment-6110650 and then got the above error.
I applied cleanly the patch in #9 above and the error was gone.
Comment #12
chx commenteddroplet, thanks for working on this.
Comment #13
laufeyjarson commentedHas this been applied to version 7.x? I see comment #6 says it works, but I also see "needs backport" and am getting the error in 7.16.
Comment #14
Anonymous (not verified) commentedApplied the above patch by hand on 7.19 and that fixed it. This bug is also referenced at #1578998: move forum topic and leave shadow cause duplicated topics show in list at #9.
Comment #15
csc4 commentedStill doesn't seem to have been committed?
Comment #16
nchase commentedin 7.32 error is still there:
Notice: Undefined property: stdClass::$new_replies in template_preprocess_forum_topic_list() (line 1205 of /modules/forum/forum.module).
The real problem is that the shadow copy sits in the same forum as the moved topic where the old forum shows the same: The moved topic and the shadow copy.
Comment #19
gemalmSame here, getting the error in 7.32. But applying manually the last submitted patch commented in #9 it works fine!
Thanks.
Comment #20
gemalmHei,
I have generated the patch for the current branch 7.x
Comment #21
rteijeiro commentedCould you start the comment with capitals and end with a period, please? I know that was wrong in original patch but we should try to follow coding standards.
Remember to change issue status to "Needs review" in order to let testbot start to test it.
Thanks for the re-roll :)
Comment #22
gemalmThanks Ruben :)
I have modified the patch and changed the status to "Needs review".
Comment #23
rteijeiro commentedGood! Now it looks like you should fix indentation of the comment to same level than 'if' statement.
Comment #24
gemalmThanks for your tips rteijeiro
Indentation added to the comment.
Comment #29
rteijeiro commentedIt looks like the path where you created the patch is not correct. Try to create the patch from drupal root.
Comment #30
salvisIf it's a D7 patch then it probably won't apply to D8, that's why it makes sense to name it "do-not-test", except there's a "t" missing.
Comment #31
droplet commentedTotally diff story in D8 now #2390065: Moving a forum with "Leave shadow copy" checked should leave a copy in the original forum.
Comment #33
David_Rothstein commentedThere may be a more serious bug in Drupal 8 also (that is masking this one), but the code that leads to the PHP notice looks the same in Drupal 8 (ForumManager::getTopics()).... It needs the same change to make sure $topic->new_replies always gets set, doesn't it?
Comment #34
lokapujyaWon't the forum_tid always be the same as the $tid since it is filtered in the query?
The original problem doesn't seem to exist anymore in D8. Rerolled, and removed the $tid check.
Comment #35
lokapujyaComment #36
salvisThis issue is not held up because #9 did not work but because we don't have tests.
I don't think any of the patches after #9 are correct.
Comment #37
lokapujya#34 is a reroll of 9, plus the change described in #34. We ARE adding a test here: #2390065 Does that test cover this issue also?
Comment #38
jcchapster commentedVerified that the patch for D7 in comment 36 worked for me using Drupal 7.38. I am able to move a thread, leaving a shadow. Viewing the moved thread, and/or clicking on "This topic has been moved" both result in viewing the thread without the error.
Comment #39
mgiffordRe-uploading patch for the bots.
Comment #40
mgiffordStill needs work as per #36
Comment #41
lokapujyaI think we can use the test from https://www.drupal.org/node/2390065?
Comment #43
fuzzy76 commentedKeeping bugs in in production, holding up a thoroughly tested D7 patch for five years while waiting for D8 tests. This is just wrong.
Comment #44
droplet commentedAs what I can remembered #31, it's the different story in D8. the tests can be alone or merged soon. let's review the current issue or add a test and then move forward.
Join the party and tell something we never noticed before, we can do it better: #2706483: [policy, no patch] Policy to help less interested Patch move forward.
Comment #45
lokapujyaIt was 7 months ago, so I don't remember, but It looks like I postponed the issue on #2390065 because I think it has the TEST that is needed for this issue to move forward.
Comment #46
fuzzy76 commented@droplet But this was about the D7 patch which was thoroughly tested, so this is more about the backport and/or test policy and not lack of interest. Keeping bugs in the codebase because of test coverage.
Comment #47
lokapujyaSomeone could just copy the test from https://www.drupal.org/node/2390065 and add it to the patch for this issue and we would be done.
Comment #48
lokapujyaNot writing a test is the same as lack of interest.
Comment #53
charlieji commentedI have just commented out the 'Leave shadow copy' function in the core module. The issue I had was exactly same as #16.
I am using the 7.59 core module. It seems like the latest drupal 7 core module is still having this issue?
I understand it is not right thing to do to change the core. Can we disable or let user to have the option to disable the 'Leave shadow copy' check box in the next release?
Comment #54
fuzzy76 commentedOr we could use the 7 year old, tested patch...
Unless you believe that commiting code without tests would do more harm to the code base than leaving bugs unpatched for 7 years...
Comment #62
quietone commentedForum is approved for removal. See #1898812: [policy] Deprecate forum module for removal in Drupal 11
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to the contributed extension once the Drupal 11 branch is open.
Comment #64
quietone commented