Project

General

Profile

Actions

Bug #13307

closed

PPP interface custom reset date/time Hour and Minute fields do not properly handle ``0`` value

Added by Jim Pingle almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
PPP Interfaces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Default
Affected Version:
Affected Architecture:

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.

Actions

Also available in: Atom PDF