Permalink
Browse files

don't show asterisk for readonly fields

  • Loading branch information...
flack committed Dec 4, 2018
1 parent 6ef8207 commit 2dd2ad4470ef13a50c790024a31361085cb31c0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/midcom/datamanager/template/form.php
@@ -587,7 +587,7 @@ public function form_label(FormView $view, array $data)
$data['label'] = $this->renderer->humanize($data['label']);
$label_attr = $data['label_attr'];
if ($data['required']) {
if ($data['required'] && empty($data['attr']['readonly'])) {
$label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '') . ' required');
$data['label'] .= ' <span class="field_required_start">*</span>';
}

0 comments on commit 2dd2ad4

Please sign in to comment.