- π¨π¦Canada joseph.olstad
Proposed resolution
Do not set the workflow id, and leave it configurable or calculated.
hmm?
- ππ·Croatia Aporie
Hmm yes, it doesn't look simple.
Maybe we could let these settings empty at first.
Build the form default_values on $workflow = reset($workflows = $this->entityTypeManager->getStorage('workflow')->loadMultiple()); so we make sure one exists, and if none exist return a message saying a workflow must be configured first?
- πΊπΈUnited States danflanagan8 St. Louis, US
I just ran into this on a site where our Workflow was named `publishing` and there was no `editorial` workflow. I worked around it by manually creating a moderated_content_bulk_publish.settings.yml in my config directory and importing it. At that point the form worked beautifully (though I no longer needed it!).
- π¨π¦Canada joseph.olstad
@danflanagan8, thanks for that info, hopefully it leads someone to get an idea for a patch sooner than later, ideally would be optional to select the workflow, maybe even provide some sort of a log message or maybe bring up a message if the default workfllow (editorial) doesn't exist.
- First commit to issue fork.
- Merge request !23Issue #3315751: Call to a member function getTypePlugin() on null β (Merged) created by budalokko
- πͺπΈSpain budalokko Girona
I've created a MR which simply does not show the state selection fields until there is a workflow set. So, the user should access the form, select a workflow and press save. Then the form behaves normally.
Please test with this patch -> https://git.drupalcode.org/project/moderated_content_bulk_publish/-/merg...
-
budalokko β
committed 5b7d609a on 3.0.x
Issue #3315751: Call to a member function getTypePlugin() on null
-
budalokko β
committed 5b7d609a on 3.0.x
- Status changed to Fixed
7 months ago 12:41pm 17 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.