remove useless use of variable
Merge pull request #2801 from xabbuh/fix-dynamic-form-modification

remove useless use of variable