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
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ class CaptchaType extends AbstractType
)); ));
$persistOptions = array(); $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]; $persistOptions[$key] = $options[$key];
} }