YetiForceCompany / YetiForceCRM

Our team created for you one of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
Other
1.72k stars 742 forks source link

[bug] 12 Hour Clockpicker "Please enter valid time" #12775

Closed z0lo13 closed 4 years ago

z0lo13 commented 4 years ago

🐞 bug report

⁉️ Describe the bug

in 5.3 SP 2 as well as gitstable does not allow to save time when using 12 hour format. It is fixed in current git developer but was not coming with a second service pack.

🔥 How to trigger the error

Gitstable 2020-03-26_01-42-51 (1)

Our Instance 2020-03-26_01-47-21 (1)

👎 Actual Behavior

Time is not saved

👍 Expected Behavior

Time saved

👷 Testing

📷 Screenshot of configuration

Git Stable

📝 PHP/Apache/Nginx/Browser/CRM Logs

Git Stable

🌍 Your Environment

Git Stable | | Service Pack version | 2|

kcrudup commented 4 years ago

The clockpicker is adding an extra space between the AM/PM and the time.

Creating 10:00 AM - extra space - invalid and not 10:00 AM - no extra space - valid

z0lo13 commented 4 years ago

@konadrian https://github.com/YetiForceCompany/YetiForceCRM/commit/6e6895d4859509e415bd5c1d909147a2a6aae40e the space on line 899

acsinsurancegroup commented 4 years ago

Been an issue every release as far back as I can remember. No effort has gone into correcting it for 12 hour since it works for those in 24 hours.

rskrzypczak commented 4 years ago

The problem is in the clockpicker library itself, they have a wrongly compiled min.js file in there. You can solve this error quickly in 2 ways:

  1. Remove public_html/libraries/clockpicker/dist/bootstrap4-clockpicker.min.js file
  2. Disable loading min.js files config/Developer.php ($MINIMIZE_JS)
acsinsurancegroup commented 4 years ago

Wow @rskrzypczak finally someone with a solution for an issue with this system that actually works. Thanks so much man, it worked perfectly. Assuming it doesn't cause issues elsewhere that is lol.

Would you mind helping me out with this other issue that I really need to get working asap? #12793

Thanks again mate!

rskrzypczak commented 4 years ago

install service pack v4