Skip to content

Commit 6760eb9

Browse files
authored
Update function_commun.php
1 parent e9798fb commit 6760eb9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

require/function_commun.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ function modif_values($field_labels, $fields, $hidden_fields, $options = array()
541541
}else if($inputType == 'disabled'){
542542
echo "<div class='input-group'>";
543543
echo "<input type='text' name='".$field['INPUT_NAME']."' id='".$field['INPUT_NAME']."' value='".$field['DEFAULT_VALUE']."' class='form-control' ".$field['CONFIG']['JAVASCRIPT']." readonly>";
544-
echo "</div>";
544+
if($field['COMMENT_AFTER'] == ""){
545+
echo "</div>";
546+
}
545547
}else if($inputType == 'select'){
546548
echo "<div class='input-group'>";
547549
echo "<select name='".$field['INPUT_NAME']."' class='form-control' ".$field['CONFIG']['JAVASCRIPT'].">";
@@ -553,7 +555,9 @@ function modif_values($field_labels, $fields, $hidden_fields, $options = array()
553555
}
554556
}
555557
echo "</select>";
556-
echo "</div>";
558+
if($field['COMMENT_AFTER'] == ""){
559+
echo "</div>";
560+
}
557561
} else if($inputType == 'checkbox'){
558562
if($field["CONFIG"]["SELECTED_VALUE"] == "on"){
559563
echo "$label <input type='".$inputType."' name='".$field['INPUT_NAME']."' id='".$field['INPUT_NAME']."' class='form-control' ".$field['CONFIG']['JAVASCRIPT']." checked>";

0 commit comments

Comments
 (0)