Fix : attr was crushed in data_pattern|replace

In the concatenation line 112|113|114 attr was not transmitted to the form_widget function.
Merge pull request #459 from sumbobyboys/patch-1

Fix : attr was crushed in data_pattern|replace