Update html.form.class.php

This commit is contained in:
Mohamed DAOUD 2024-12-05 10:49:24 +01:00 committed by GitHub
parent b3e49ba5db
commit c574e62972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7313,7 +7313,7 @@ class Form
}
// Note: We don't need monthNames, monthNamesShort, dayNames, dayNamesShort, dayNamesMin, they are set globally on datepicker component in lib_head.js.php
if (!getDolGlobalString('MAIN_POPUP_CALENDAR_ON_FOCUS')) {
$buttonImage = $calendarpicto ?: DOL_MAIN_URL_ROOT . "/theme/" . dol_escape_js($conf->theme) . "/img/object_calendarday.png";
$buttonImage = $calendarpicto ?: DOL_URL_ROOT . "/theme/" . dol_escape_js($conf->theme) . "/img/object_calendarday.png";
$retstring .= "
showOn: 'button', /* both has problem with autocompletion */
buttonImage: '" . $buttonImage . "',