FreePBX / userman

Module of FreePBX (User Management) :: This Module manages all PBX users. It allows an Administrator to create a User Account that can be used by other applications for login or API purposes.
http://www.freepbx.org
GNU Affero General Public License v3.0
2 stars 20 forks source link

[bug]: Userman module doesn't honor Sync interval chosen in GUI #21

Closed dstnzrkl closed 4 months ago

dstnzrkl commented 8 months ago

FreePBX Version

FreePBX 16

Issue Description

The GUI shows options as 30 minutes, 1 hour, 6 hours, and 24 hours. The Console and Job code match 2/4 of these and just keep doubling the time to two hours and 4 hours causing Userman to sync much more often than it's wanted.

This looks to have been in place as far back as the commits are in GitHub: https://github.com/FreePBX/userman/blob/3a1799f5e6bb4bca775a99711badd4a0aead4bbb/Console/Userman.class.php#L113 and https://github.com/FreePBX/userman/blame/3a1799f5e6bb4bca775a99711badd4a0aead4bbb/Job.php#L45

Operating Environment

17.0.6.8 16.0.44.6 15.0.69.19

Relevant log output

No response

kguptasangoma commented 4 months ago

userman v17.0.6.26

dstnzrkl commented 2 months ago

Is this not going to be rolled out for 16?

kguptasangoma commented 2 months ago

we could backport the fix to 16 but its better to upgrade to 17 @dstnzrkl