Possible bug in dhtmlxScheduler last_hour and lightbox

Hello,

I believe I’ve discovered a bug in dhtmlxScheduler v2.3. If you use the last_hour configuration parameter with the limit_time_select the latest end time select option that is rendered is last_hour - time_step. For example, if you set:

config.scheduler.last_hour = 19;
config.scheduler.time_step = 15;
scheduler.config.limit_time_select = true;

The last time available in the end time select in the lightbox is 18:45. This will leave a 15 minute gap at the end of that day, but you can move the appoint to 19:00 in the calendar (day/week/unit) view. Based on the render function for the time block form block in dhtmlxscheduler.js I believe this is happening because of the condition in the for loop on line 3454?

Can you recommend a manual patch that I could try? If not I will attempt to patch it myself, but your Javascript capabilities far exceed mine! :slight_smile:

Thanks,
Chris

Hello, Chris.

Thank you for reporting this issue to us.
Currently we are looking into it and as soon as I have fix I will post it here.

Best regards,
Ilya

Hi, I was just wondering if this was ever fixed? Thanks!

I think I found the problem - it is in ext_minical.js, line 229. Changing that line to this corrects the problem:

for (var i=60*cfg.first_hour; i<=60*cfg.last_hour; i+=this.config.time_step*1){