Error in console when content type does not have workflow

Description

Steps

  • Create an article, with a content type which does not have a workflow attached

  • --> Result: console contains an error

  • URL: /admin/workflow/change_state?workflow=undefined&state=undefined&_format=json

  • Message: {"error":{"code":500,"message":"Internal Server Error"}}

Note: I think the AssetBundle should be loaded to load the Workflow javascript, to make sure it is only loaded when the workflow formtype is loaded

Technical tasks

None

Deployment actions

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Labels

None

Product owner

Marijn Otte

Plan date

None

Follow up date

None

Code reviewer

None

Developer

None

Refiner

None

Dev hour estimate

None

Max. hours

None

External issue ID

None

Error message

None

Min. hours

None

Epic Link

Fix versions

Priority

Major
Configure