Bug #13307
closedPPP interface custom reset date/time Hour and Minute fields do not properly handle ``0`` value
100%
Description
When configuring a custom PPP interface reset time on /interfaces_ppps_edit.php
or interfaces.php
the page mishandles the contents of the Hour and Minute fields if the value is 0
.
When entering 0
it should take that value exactly but it's being replaced by *
(interfaces_ppps_edit.php) or blank (interfaces.php
) which leads the backend to interpret the value as *
meaning "every", which makes the custom reset happen at either every hour (if someone wants to reset during midnight hour) or every minute (if someone wants to reset at the top of the hour), or even every minute of every hour (if they intend to reset at exactly midnight).
It's easy enough to work around by choosing a non-zero value in both fields, but needs fixed for the next release.