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 over 1 year 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 #1

Updated by Jim Pingle over 1 year ago

  • Plus Target Version changed from 22.09 to 22.11
Actions #2

Updated by Jim Pingle over 1 year ago

  • Plus Target Version changed from 22.11 to 23.01
Actions #3

Updated by Jim Pingle over 1 year ago

  • Assignee set to Jim Pingle
Actions #4

Updated by Jim Pingle over 1 year ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #5

Updated by Alhusein Zawi over 1 year ago

Custom reset option takes 0 value

23.01-DEVELOPMENT (amd64)
built on Fri Dec 02 06:04:48 UTC 2022

Actions #6

Updated by Alhusein Zawi over 1 year ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF