Octopoos / SEBLOD

Build high-end websites with SEBLOD®, a CCK for Joomla!
https://www.seblod.com
GNU General Public License v2.0
126 stars 54 forks source link

Calendar picker (hour) not working with Seblod 4.1.1 #778

Open webmasterpaca opened 8 months ago

webmasterpaca commented 8 months ago

Hi, I'm using Jform Calendar in my form and I can't select times with calendar picker. The current time remains displayed. I just updated Joomla 3 to 4.4 and Seblod to 4.1.1. Under Joomla 3 it worked well. Thank you for your feedback

olivier-nolbert commented 8 months ago

Hi,

It's not a problem with the SEBLOD JForm Calendar Field plugin but with the native Joomla! calendar javascript code: On hour or minute select change, the code sends the new time for the input field to be changed but to do this, it tries to get the "seconds" select element value...which is not here anymore, and so it raises a javascript error and the input field is not updated.

2 ways to fix this while waiting for a fix to be done :

  1. Edit your SEBLOD JForm Calendar field and set the week numbers to be displayed. This will make the Joomla! javascript code add an extra empty element where the "seconds" one was supposed to be and the error will be gone
  2. Hack (ugly I know) the Joomla calendar javascript code file located in /media/system/js/fields/ with the one attached (For Joomla! 4.4.0).

calendar.js.zip

Regards, Olivier

webmasterpaca commented 8 months ago

Hi Olivier, Thank you for your answer, I just displayed the numbers for the week, it works. I'm using this solution while waiting for this bug to be fixed in Joomla. Thank you for your help !

joomleb commented 8 months ago

Hi guys, Has that bug been reported in Joomla ?