Jelajahi Sumber

Budget fix group filter size

Piotr Labudda 10 tahun lalu
induk
melakukan
96156c281f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      SE/se-lib/Route/Budget.php

+ 1 - 1
SE/se-lib/Route/Budget.php

@@ -88,7 +88,7 @@ class Route_Budget extends RouteBase {
 			<?php if (!empty($groups)) : ?>
 			<?php if (!empty($groups)) : ?>
 			<div style="margin:8px 0">
 			<div style="margin:8px 0">
 				<label for="fltrGroups">Pokaż tylko projekty dostępne dla grup:</label>
 				<label for="fltrGroups">Pokaż tylko projekty dostępne dla grup:</label>
-				<select multiple name="fltrGroups[]" size="<?php echo min(5, count($groups)); ?>" class="form-control">
+				<select multiple name="fltrGroups[]" size="<?php echo min(5, count($groups) + 1); ?>" class="form-control">
 					<option value=""> [ Wszystkie ] </option>
 					<option value=""> [ Wszystkie ] </option>
 					<?php foreach ($groups as $idGroup => $groupLdapName) : ?>
 					<?php foreach ($groups as $idGroup => $groupLdapName) : ?>
 						<option
 						<option