Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In rules and entity tokens the text property is broken, like
[node:message-ref:text]
Googlefood: Also we get a warning trace like
Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in EntityValueWrapper->value() (line 259 of .../sites/all/modules/entity/includes/entity.wrapper.inc).
Backtrace:
call_user_func(1, 'Some message text') entity.wrapper.inc:259
EntityValueWrapper->value(Array) entity_token.tokens.inc:329
_entity_token_get_token(Object, Array) entity_token.tokens.inc:184
entity_token_tokens('message', Array, Array, Array)
call_user_func_array('entity_token_tokens', Array) module.inc:934
module_invoke_all('tokens', 'message', Array, Array, Array) token.inc:178
token_generate('message', Array, Array, Array) entity_token.tokens.inc:208
entity_token_tokens('message', Array, Array, Array)
call_user_func_array('entity_token_tokens', Array) module.inc:934
module_invoke_all('tokens', 'message', Array, Array, Array) token.inc:178
token_generate('message', Array, Array, Array) token.inc:87
token_replace('Angenommen: [message:field-moderation-request:text]', Array, Array) message.message.inc:198
Message->getText(NULL, Array) message_handler_field_message_render.inc:81
message_handler_field_message_render->render(Object) views_handler_field.inc:1041
Comment | File | Size | Author |
---|---|---|---|
text-sanitized.patch | 535 bytes | nicola85 | |
|
Comments
Comment #2
geek-merlinComment #3
geek-merlinAdded description and raised prio to major as this makes a central thing of this module unusable.
Comment #4
geek-merlinAbove patch fixes this.
Comment #5
geek-merlinComment #6
torgosPizzaAny chance of this patch getting committed?
Comment #7
geek-merlin@torgosPizza: does it work for you too?
Comment #8
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commentedThe patch is correct. See https://cgit.drupalcode.org/entity/tree/entity.api.php for
sanitize
andsanitized
.Comment #9
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commentedThe GitHub issue for this is https://github.com/Gizra/message/pull/155.
Comment #10
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented