Adding background_images in persisted options (fixes #175)

This commit is contained in:
Gregwar 2017-10-02 11:12:17 +02:00
parent b787a8002e
commit 8ce4adb1b1

View File

@ -113,7 +113,8 @@ class CaptchaType extends AbstractType
));
$persistOptions = array();
foreach (array('phrase', 'width', 'height', 'distortion', 'length', 'quality', 'background_color', 'text_color') as $key) {
foreach (array('phrase', 'width', 'height', 'distortion', 'length',
'quality', 'background_color', 'background_images', 'text_color') as $key) {
$persistOptions[$key] = $options[$key];
}