From 339a80314a10a6eaba84c230e2213d293782fb8b Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Fri, 24 Jul 2020 14:44:10 +0200 Subject: [PATCH] TT#87505 CF timeset fields extend cyclic * "month", "day", "hour", "minute" can now be entered as "day":"30-12" where max < min, that is to allow timeset date ranges entered via the API. That also brings it equal to how it is accepted to be entered in timesets UI form. Change-Id: Icbfa8f4a3e9086d917fca061525999202b105b64 --- lib/NGCP/Panel/Form/CallForward/CFTimeSetSubAPI.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/NGCP/Panel/Form/CallForward/CFTimeSetSubAPI.pm b/lib/NGCP/Panel/Form/CallForward/CFTimeSetSubAPI.pm index aa0db0cee4..b3c685bd0e 100644 --- a/lib/NGCP/Panel/Form/CallForward/CFTimeSetSubAPI.pm +++ b/lib/NGCP/Panel/Form/CallForward/CFTimeSetSubAPI.pm @@ -37,6 +37,7 @@ has_field 'times.month' => ( type => '+NGCP::Panel::Field::NumRangeAPI', min_start => 1, max_end => 12, + cyclic => 1, label => 'Month', empty_select => '', ); @@ -44,6 +45,7 @@ has_field 'times.mday' => ( type => '+NGCP::Panel::Field::NumRangeAPI', min_start => 1, max_end => 31, + cyclic => 1, label => 'Day', ); @@ -60,6 +62,7 @@ has_field 'times.hour' => ( type => '+NGCP::Panel::Field::NumRangeAPI', min_start => 0, max_end => 23, + cyclic => 1, label => 'Hour', empty_select => '', ); @@ -68,6 +71,7 @@ has_field 'times.minute' => ( type => '+NGCP::Panel::Field::NumRangeAPI', min_start => 0, max_end => 59, + cyclic => 1, label => 'Minute', empty_select => '', );