diff --git a/helper/actionmail.php b/helper/actionmail.php index dc32b76..85a1919 100644 --- a/helper/actionmail.php +++ b/helper/actionmail.php @@ -103,14 +103,7 @@ protected function processFieldsBuildTable($fields, $mail) { switch($field->getFieldType()) { case 'fieldset': - if(!empty($field->depends_on)) { - //print fieldset only if depend condition is true - foreach($fields as $field_tmp) { - if($field_tmp->getParam('label') === $field->depends_on[0] && $field_tmp->getParam('value') === $field->depends_on[1] ) { - list($html, $text) = $this->mail_buildRow($label); - } - } - } else { + if(!$field->hidden) { list($html, $text) = $this->mail_buildRow($label); } break;