Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #16854: Cannot attach PDF to email invitation (email temp…
…late for surveys) (#1679) * Fixed issue #16854: Cannot attach PDF to email invitation (email template for surveys) Previously, at emailtemplates controller's 'update' method, the settings were saved directly using updateAll. After commit '2c8ccdd5', in order to apply the model's validation, the settings are saved using 'setAttributes($attributes)' and 'save()'. The setAttributes method, by default, only assigns 'safe' attributes (attributes that have a validation rule). That excludes the 'attachments' attribute. Passing 'false' as second parameter solves the issue. * Fixed issue #16854: Cannot attach PDF to email invitation (email template for surveys) Adding validation to attachments as to make them a safe attribute
- Loading branch information