Download & Extend

Length of machine readable name of content type may not exceed 21 for actions to perform in workflow

Project:Workflow
Version:7.x-1.x-dev
Component:Documentation
Category:task
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I lost a few hours on this one.

If the machine readable name of the content type on which you want to define actions in the workflow exceeds 20 characters then the actions you define will not be visible in the screen where you define the triggers and they will not execute.

The reason is that the length of the field "op" in the "trigger-assignments" table is 32 characters.
The name of this "op"-field is a concatenation of the string "workflow-" with the machine readable name of the content type, another "-" and the transition-id on which the action has to be performed.
If the latter has a length of 1 then this leaves 32 - 9 - 1 - 1 = 21 characters for the machine readable name of the content type.

Can this be added as a remark in the readme.txt please?
Thanks!

Comments

#1

I'll take a look to see if this is still an issue in the latest version of the code.

#3

Version:6.x-1.1» 7.x-1.x-dev

Even with the move to use hooks in D7 for triggers, the length remains an issue (and may in fact just get worse with time). Truthfully - the field in triggers should be longer, but that's a change to get put into triggers, and may or may not take too long to get committed. In the meantime we can add something here with Workflow 7 (and backport to 6) to help people avoid hitting this error all the time.

#4

Status:active» closed (fixed)

Readme.txt has been added to Actions to try and help people hunting down this particular bug.
See: http://drupal.org/commitlog/commit/198/fad822449a39e1b23602078a8268b103a...

nobody click here