Closed (fixed)
Project:
Webform Scoring
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2016 at 04:26 UTC
Updated:
31 Aug 2017 at 13:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
socialnicheguru commentedmodified line 34 in webform_scoring/includes/forms/rule.delete.inc to remove
$conditionfrom the evaluation.I was then able to delete any rule that had or did not have a component.
if you deleted a field, then the rule would not have a component.
You might be able to save a rule without a component.
old code:
if ($rule && $component) {new code
if ($rule){Comment #3
chishah92 commentedHave added a patch as per suggestions.
Thanks!
Comment #4
socialnicheguru commentedI wanted to know from the maintainers if there was a reason to check for
$component.I thought it best to just delete any rule regardless.
Comment #5
chishah92 commentedComment #8
jaykandariCommitted! Thanks for Contribution!! :)