Closed (fixed)
Project:
Workbench Moderation
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2016 at 01:07 UTC
Updated:
12 Feb 2016 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
juampynr commentedHere is a test that demonstrates it.
Comment #3
juampynr commentedAnd here is a patch that fixes it.
Comment #7
Crell commentedAs discussed in IRC, let's move the check to bundleFormRedirect(). It seems cleaner there.
Comment #8
juampynr commentedHere it its.
Comment #9
Crell commentedThis is a coding standards violation. The @inheritdoc is necessary.
There is always a latestRevisionId(), unless core has a bug. (And in some cases core does have a bug, which has its own issue somewhere.)
The fix we discussed belongs in the submit callback itself, not down here in the API call.
Comment #10
juampynr commentedDiscussed it with @Crell. We will take the chance to make hasForwardRevision() to return a boolean value.
Comment #11
juampynr commentedFrom IRC:
Comment #12
juampynr commentedI looked at the interface and saw that the error happens because getDefaultRevisionId() is not doing what the interface says: to return a NULL if there is no entity. I adjusted it and now the error is gone without touching anything else.
Comment #14
Crell commentedInterfaces: Solving your problems since 2005. :-) Thanks, Juampy!