webform_civicrm icon indicating copy to clipboard operation
webform_civicrm copied to clipboard

fixed fatal error when editing submission with cs field

Open pradpnayak opened this issue 1 year ago • 3 comments

Overview

TypeError: Unsupported operand types: string * int in wf_crm_webform_postprocess->fillHiddenContactFields() (line 727 of /var/www/html/drupal7/sites/defaults/modules/contrib/webform_civicrm/includes/wf_crm_webform_postprocess.inc).

pradpnayak avatar Jun 12 '23 13:06 pradpnayak

@pradpnayak - we're D9/D10 first, so please PR to 6.x - so that it will run the extensive test matrix on it. After we see that PR through -> then we can look at backporting to D7.

KarinG avatar Jun 12 '23 13:06 KarinG

Hi @KarinG

The field works fine on D9, but fails on d7 because it uses different code for submissionValue().

pradpnayak avatar Jun 12 '23 14:06 pradpnayak

What's that section of code like in D9? Is this PR a direct backport?

KarinG avatar Jun 12 '23 14:06 KarinG