Browse code

Do not statically enable mandatory fields

Benjamin Roth authored on08/02/2020 12:56:47
Showing1 changed files
... ...
@@ -107,11 +107,11 @@ class formilicious_tl_module extends \Backend
107 107
     if (!empty($arrValues) && \is_array($arrValues)) {
108 108
       $arrMandatory = $this->getMandatoryMemberFields();
109 109
 
110
-      foreach ($arrValues as $i => $field) {
110
+      /*foreach ($arrValues as $i => $field) {
111 111
         if (\in_array($field['name'], $arrMandatory, true)) {
112 112
           $objWidget->addDataToFieldAtIndex($i, 'enabled', array('value'=>1,'eval' => array('disabled' => true)));
113 113
         }
114
-      }
114
+      }*/
115 115
     }
116 116
 
117 117
     return array