From d8adf49ee079f47327959b694d4e2e3791d54628 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 24 Sep 2021 12:37:23 +0800 Subject: [PATCH] Fix bug. --- app/helpers/admin/p_hire_field_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/helpers/admin/p_hire_field_helper.rb b/app/helpers/admin/p_hire_field_helper.rb index 19e1eeb..c1cc29a 100644 --- a/app/helpers/admin/p_hire_field_helper.rb +++ b/app/helpers/admin/p_hire_field_helper.rb @@ -461,9 +461,10 @@ protected def form_label if self.markup == "text_area" plc = typeD["placeholder"][I18n.locale].to_s.blank? ? '' : "(#{typeD["placeholder"][I18n.locale]})" - ""+ - label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted")+ - tag(:br)+"#{plc}" + if plc.present? + plc = tag(:br)+plc + end + label_tag(key,(!@require.blank? ? '*'+title + plc : title + plc),:class=>"col-sm-#{@col} control-label muted") else label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted") end