From 327314e247d949e98b1df6f9430dd945af09ddb6 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 22 Apr 2019 17:00:04 -0300 Subject: [PATCH] aunque tengan etiquetas los campos son requeridos --- app/models/post/template_field.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/models/post/template_field.rb b/app/models/post/template_field.rb index abb4dae..8b4b692 100644 --- a/app/models/post/template_field.rb +++ b/app/models/post/template_field.rb @@ -248,13 +248,15 @@ class Post def human h = key.humanize - h += ' *' if required? h end def label - (complex? && contents.dig('label')) || human + h = (complex? && contents.dig('label')) || human + h += ' *' if required? + + h end def help