MDL-41643 datafield_checkbox: Add line breaks behind checkbox options.
authorJohannes Burk <me@jojoob.de>
Thu, 29 Oct 2015 10:47:48 +0000 (11:47 +0100)
committerJohannes Burk <me@jojoob.de>
Sat, 14 Nov 2015 12:48:20 +0000 (13:48 +0100)
Add line a break behind each checkbox option in advanced search.

mod/data/field/checkbox/field.class.php

index 5b3cbf7..0711292 100644 (file)
@@ -97,6 +97,7 @@ class data_field_checkbox extends data_field_base {
             } else {
                 $str .= html_writer::checkbox('f_'.$this->field->id.'[]', s($checkbox), false, $checkbox);
             }
             } else {
                 $str .= html_writer::checkbox('f_'.$this->field->id.'[]', s($checkbox), false, $checkbox);
             }
+            $str .= html_writer::empty_tag('br');
             $found = true;
         }
         if (!$found) {
             $found = true;
         }
         if (!$found) {