Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current Math plugin only takes in a numeric value. It would be useful to have another math plugin (Math field) that allows users to select a field to do the operation with. See screenshot. (patch to come shortly).
Comment | File | Size | Author |
---|---|---|---|
#5 | feeds_tamper-math_fields_support-2841168-5.patch | 7.65 KB | victoriachan |
#2 | feeds_tamper-math_fields_support-2841168-2.patch | 7.7 KB | victoriachan |
screenshot.png | 49.55 KB | victoriachan |
Comments
Comment #2
victoriachan CreditAttribution: victoriachan at Torchbox commentedPatch with new plugin + test.
Comment #4
victoriachan CreditAttribution: victoriachan at Torchbox commentedSorry, a tiny omission regarding stray validation. Have corrected it now. New patch attached. Note that the test is failing because of https://www.drupal.org/node/2835936
Comment #5
victoriachan CreditAttribution: victoriachan at Torchbox commentedSorry! Wrong patch. Correct one attached now.
Comment #6
adigunsherif CreditAttribution: adigunsherif commentedPatch #5 works perfectly! Thanks
Comment #7
guitmann CreditAttribution: guitmann as a volunteer and commentedits not work:(
Notice: Undefined index: id in function feeds_tamper_math_field_callback() (line 90 in file /sites/all/modules/feeds_tamper/plugins/math_field.inc).