Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix for http://framework.zend.com/issues/browse/ZF2-571 #2395

Closed
wants to merge 1 commit into from
Closed

Fix for http://framework.zend.com/issues/browse/ZF2-571 #2395

wants to merge 1 commit into from

Conversation

delatbabel
Copy link

Hopefully this is the correct pull request to fix http://framework.zend.com/issues/browse/ZF2-571

There should only be one commit here, one line change to Form/Element/Checkbox.php

@ghost ghost assigned weierophinney Sep 21, 2012
@weierophinney
Copy link
Member

Can you please add a test?

@weierophinney
Copy link
Member

Closing due to inactivity.

@stillatmylinux
Copy link

There is a work around for this. Instead of changing the boolean value in the core file you can just add a InputFilter

namespace MyModule\Form;
use Zend\InputFilter\InputFilter;

class MyFormFilter extends InputFilter {
    public function __construct() {

        $this->add(array(
            'name'       => 'myCheckboxes',
            'required'   => false,
        ));
    }
}

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

Successfully merging this pull request may close these issues.

None yet

3 participants