فهرست منبع

set required=false on delete checkbox

Thomas 14 سال پیش
والد
کامیت
c386c01310
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Form/EditableCollectionField.php

+ 3 - 1
Form/EditableCollectionField.php

@@ -42,7 +42,9 @@ class EditableCollectionField extends Form
     public function __construct(FieldInterface $innerField, array $options = array())
     {
 
-        $innerField->add(new CheckboxField('_delete'));
+        $innerField->add(new CheckboxField('_delete', array(
+            'required' => false
+        )));
 
         $this->prototype = $innerField;