- Issue created by @mxh
- 🇩🇪Germany jurgenhaas Gottmadingen
Oh, good catch. I was just looking through the tamper plugins that come with an optional annotation
handle_multiples = TRUE
which is documented like this:Typically plugins that have handle_multiples as TRUE will expect an array as input and iterate over it themselves, changing the whole array.
We could read that property from the plugin and if this is set to TRUE, we can use the alternate token extraction method. That way, we keep the intact functionality for all other plugins and fix the array issue not only for the implode but also for other plugins that expect data to be an array.
- @jurgenhaas opened merge request.
- Status changed to Needs review
over 1 year ago 3:28pm 28 April 2023 - Status changed to Needs work
over 1 year ago 5:48pm 2 May 2023 - Status changed to Needs review
over 1 year ago 2:43pm 4 May 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
@mxh would you mind another quick review?
- 🇩🇪Germany mxh Offenburg
Took a quick look at the code, looks fine to me. Unfortunately currently got no time for a thorough test.
- 🇩🇪Germany mxh Offenburg
Self-defined lists that are wrapped by DataTransferObject are most probably fine. Guess another plausible case would be the attempt to implode field values, using something like [node:field_my_list] as token. Would be interesting to see how the implode plugin then behaves. Maybe it needs an array of scalars?
- 🇩🇪Germany jurgenhaas Gottmadingen
I've added support for
EntityReferenceFieldItemListInterface
andFieldItemListInterface
which is working nicely. Maybe another quick look? - Status changed to Needs work
over 1 year ago 6:18pm 15 May 2023 - 🇩🇪Germany mxh Offenburg
Took another look and left one note, otherwise I think it's fine.
-
jurgenhaas →
committed 76dfcbed on 1.0.x
Issue #3357117 by jurgenhaas, mxh: Implode does not work for arrays
-
jurgenhaas →
committed 76dfcbed on 1.0.x
- Status changed to Fixed
over 1 year ago 8:44am 17 May 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
Thanks @mxh for working on this with me. Now resolved and marked as fixed.
-
jurgenhaas →
committed 763bd5e8 on 1.0.x
Issue #3357117 by jurgenhaas, mxh: Implode does not work for arrays
-
jurgenhaas →
committed 763bd5e8 on 1.0.x
Automatically closed - issue fixed for 2 weeks with no activity.