Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
On the node view page, if I click on a state change button, I get the error message "Comment field is required." I did specify a value in the Workflow comment box, but not in the Comment comment box.
Comment | File | Size | Author |
---|---|---|---|
#4 | 1884630.patch | 3.43 KB | NancyDru |
Comments
Comment #1
NancyDruI think this is because workflow_form_alter() adds the workflow form to the comment form. Comments and workflow should be separate. Perhaps using hook_node_view() would be more appropriate?
Comment #2
NancyDruIndeed, I set comments to a separate page, and when going to the add comment page, there is the workflow-tab display. IMHO, it has no business being on a separate comment page. Workflows belong to nodes, not comments.
Comment #3
NancyDruTry this:
BTW, if this is accepted, it might be better to move workflow.pages.inc into the main module.
Comment #4
NancyDruComment #5
NancyDruThis now includes #1475930: Do not rely on (creation) state name, #1874400: Workflow Token Works in Message Body but Not Subject for Emails in Rules, and #1889710: workflow_field_extra_fields_alter() sets the field on all content types.
Comment #6
NancyDruCommitted to 7.x-1.x-dev.
Comment #8
coreyp_1 CreditAttribution: coreyp_1 commentedJust posting a cross-reference where this patch has caused a different bug: #1975058: Workflow is no longer added to Comment form