The current version of Rules (2.3) doesn't support the conversion to token even though it should.

Use case: Create a node (entity) from a rule where the bundle type is stored as text in some variable/field.

The attached patch apply to 7.x-2.3 for the impatients (patch -p1 or git apply)...

Comments

EmanueleQuinto’s picture

Patch for the 7.x-2.x-dev

EmanueleQuinto’s picture

Status: Active » Needs review
StatusFileSize
new1.58 KB

Patch queued for testing.

EmanueleQuinto’s picture

Issue summary: View changes

Fix closing tag.

das-peter’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Exactly what I need, looks good to me and seems to work - I'd say RTBC.

(The only nitpick I could mention is that Case breaking statements must be followed by a single blank line isn't respected, but that's all over rules that way ;) )

fago’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

  • EmanueleQuinto authored 3c5213e on 7.x-2.x
    Issue #2013513 by EmanueleQuinto, das-peter: Action: type conversion for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.