Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
base system
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
27 Mar 2014 at 16:06 UTC
Updated:
29 Jul 2014 at 23:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
gremy commentedComment #2
bogdan.racz commentedComment #3
bogdan.racz commentedI have updated the constant with the proper one - CommentInterface::NOT_PUBLISHED.
Comment #4
bogdan.racz commentedComment #5
gremy commentedI looked the patch and it looks OK to me.
Also I searched the entire Drupal core and besides this place there is no definition COMMENT_NOT_PUBLISHED, and this is the only place where it was called.
I think that we need some tests to be written for this issue.
Comment #6
gremy commentedComment #7
swentel commentedOk, this is not extremely critical, but still major though.
Comment #8
larowlanGood find thanks
Comment #9
gremy commentedUpdated the UserCancelTest->testUserBlockUnpublish() test.
Created patch with the test only, so that if it fails we know it works.
Rerolled rbmboogie's patch with the test included, so that if this patch passes the tests we can confirm that the patch works.
Comment #10
gremy commentedComment #12
larowlanAwesome work. For next time, uploading the failing test first will ensure bit doesn't change the status.
Comment #13
catchCommitted/pushed to 8.x, thanks!