Apply min=0 to filterX and Y so that we don't get negative values

This commit is contained in:
Isaac Connor 2020-08-09 22:20:06 -04:00
parent ec707acdd1
commit f04e1a0ba7
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ xhtmlHeaders(__FILE__, translate('Zone'));
</tr> </tr>
<tr> <tr>
<th scope="row"><?php echo translate('ZoneFilterSize') ?></th> <th scope="row"><?php echo translate('ZoneFilterSize') ?></th>
<td><input type="number" name="newZone[FilterX]" value="<?php echo $newZone['FilterX'] ?>"/></td> <td><input type="number" name="newZone[FilterX]" value="<?php echo $newZone['FilterX'] ?>" min="0"/></td>
<td><input type="number" name="newZone[FilterY]" value="<?php echo $newZone['FilterY'] ?>"/></td> <td><input type="number" name="newZone[FilterY]" value="<?php echo $newZone['FilterY'] ?>" min="0"/></td>
</tr> </tr>
<tr> <tr>
<th scope="row"><?php echo translate('ZoneArea') ?></th> <th scope="row"><?php echo translate('ZoneArea') ?></th>