AntonLV 7 лет назад
Родитель
Сommit
0dc171c11b
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      template/scripts/BxBaseFormView.php

+ 1 - 7
template/scripts/BxBaseFormView.php

@@ -568,15 +568,9 @@ EOS;
         if(isset($aInput['error_updated']) && $aInput['error_updated'] === true)
             $sErrorIcon = $this->genErrorIcon(empty($aInput['error']) ? '' : $aInput['error']);
 
-        $sCaptionCode = '';
-        if ($sCaption)
-            $sCaptionCode = '<div class="bx-form-caption' . $sClassOneLineCaption . '">' . $sCaption . $sRequired . '</div>';
-        else
-            $sInput .= $sRequired;
-
+        $sCaptionCode = $sCaption ? '<div class="bx-form-caption' . $sClassOneLineCaption . '">' . $sCaption . $sRequired . '</div>' : '';
         $sInputCode = $this->genWrapperInput($aInput, $sInput);
 
-
         if (empty($sInfoIcon)) $sInfoIcon = '';
         if (empty($sInputCode)) $sInputCode = '';
         if (empty($sErrorIcon)) $sErrorIcon = '';