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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

victoriachan created an issue. See original summary.

victoriachan’s picture

Status: Active » Needs review
FileSize
7.7 KB

Patch with new plugin + test.

Status: Needs review » Needs work

The last submitted patch, 2: feeds_tamper-math_fields_support-2841168-2.patch, failed testing.

victoriachan’s picture

Sorry, 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

victoriachan’s picture

Sorry! Wrong patch. Correct one attached now.

adigunsherif’s picture

Patch #5 works perfectly! Thanks

guitmann’s picture

its 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).