Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated help_block on select/choice #153

Closed
mix359 opened this issue Aug 27, 2015 · 3 comments
Closed

duplicated help_block on select/choice #153

mix359 opened this issue Aug 27, 2015 · 3 comments

Comments

@mix359
Copy link

mix359 commented Aug 27, 2015

The help_block on a select or choice, is inserted two times under the field.

Here's and example of code that create the problem:

$form->add("field_id", "choice", [
            'label' => "Title",
            'default_value' => "",
            'choices' => ['aaa','bbb'],
            'multiple' => true,
            'help_block' => ['text' => "Sample text", 'tag' => 'p', 'attr' => ['class' => 'help-block']]
        ]);

This produces two

elements under the field

I'm using the last version (1.6.20)

@kristijanhusak
Copy link
Owner

@mix359 can you try using dev-master and see if it happens?

@kristijanhusak
Copy link
Owner

I tested it, and the bug exists there also. I fixed it in the meantime, so just pull latest dev-master and it will work out. I will publish stable version soon.

Note: If you published views make sure you update them accordingly to last commit.

@kristijanhusak
Copy link
Owner

@mix359 Fixed in latest release (1.6.30). Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants