Fake captcha bug fixed.

This commit is contained in:
Alexey Skobkin 2016-12-19 03:23:00 +03:00
parent ab8c53da07
commit ee887d8528
2 changed files with 13 additions and 2 deletions

View file

@ -3,6 +3,7 @@
namespace Skobkin\Bundle\CopyPasteBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@ -22,6 +23,16 @@ class FakeCaptchaType extends AbstractType
public function getParent()
{
return 'hidden';
return HiddenType::class;
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'copypaste_fake_captcha';
}
}

View file

@ -1,4 +1,4 @@
{% block skobkin_fake_captcha_widget %}
{% block copypaste_fake_captcha_widget %}
{% spaceless %}
<div id="{{ form.vars.id }}"></div>
<script type="text/javascript">