Explorar o código

Fix bug where you cannot clear Year on Project filters

Alan Lam %!s(int64=7) %!d(string=hai) anos
pai
achega
5f62125b7e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      views/projects.php

+ 1 - 1
views/projects.php

@@ -55,7 +55,7 @@ $report_months = array_reverse(Project::getReportMonths());
 							<label class="col-sm-4 col-form-label" for="year">Year</label>
 							<div class="col-sm">
 								<select class="form-control" type="text" name="year" id="year">
-									<option value="">Select Year</option>
+									<option value="0">Select Year</option>
 									<?php
 									foreach($year_options as $value) {
 										$selected = ($value == $year) ? "selected" : "";