diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php
index e543b7e6bd1..1f058b3c820 100644
--- a/htdocs/comm/action/card.php
+++ b/htdocs/comm/action/card.php
@@ -1320,7 +1320,7 @@ if ($action == 'create') {
// Description
print '
| '.$langs->trans("Description").' | ';
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
- $doleditor = new DolEditor('note', (GETPOSTISSET('note') ? GETPOST('note', 'restricthtml') : $object->note_private), '', 120, 'dolibarr_notes', 'In', true, true, $conf->fckeditor->enabled, ROWS_4, '90%');
+ $doleditor = new DolEditor('note', (GETPOSTISSET('note') ? GETPOST('note', 'restricthtml') : $object->note_private), '', 120, 'dolibarr_notes', 'In', true, true, isModEnabled('fckeditor'), ROWS_4, '90%');
$doleditor->Create();
print ' |
';
diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php
index 7127fd2dd5b..a57c7232885 100644
--- a/htdocs/comm/index.php
+++ b/htdocs/comm/index.php
@@ -194,7 +194,7 @@ if (!empty($conf->propal->enabled) && $user->rights->propal->lire) {
$companystatic->canvas = $obj->canvas;
print '';
- print '| '.$propalstatic->getNomUrl(1).' | ';
+ print ''.$propalstatic->getNomUrl(1).' | ';
print ''.$companystatic->getNomUrl(1, 'customer').' | ';
print ''.price((!empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT) ? $obj->total_ht : $obj->total_ttc)).' | ';
print '
';
@@ -291,7 +291,7 @@ if (!empty($conf->supplier_proposal->enabled) && $user->rights->supplier_proposa
$companystatic->canvas = $obj->canvas;
print '';
- print '| '.$supplierproposalstatic->getNomUrl(1).' | ';
+ print ''.$supplierproposalstatic->getNomUrl(1).' | ';
print ''.$companystatic->getNomUrl(1, 'supplier').' | ';
print ''.price(!empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT) ? $obj->total_ht : $obj->total_ttc).' | ';
print '
';
@@ -389,7 +389,7 @@ if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
$companystatic->canvas = $obj->canvas;
print '';
- print '| '.$orderstatic->getNomUrl(1).' | ';
+ print ''.$orderstatic->getNomUrl(1).' | ';
print ''.$companystatic->getNomUrl(1, 'customer').' | ';
print ''.price(!empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT) ? $obj->total_ht : $obj->total_ttc).' | ';
print '
';
@@ -487,7 +487,7 @@ if ((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SU
$companystatic->canvas = $obj->canvas;
print '';
- print '| '.$supplierorderstatic->getNomUrl(1).' | ';
+ print ''.$supplierorderstatic->getNomUrl(1).' | ';
print ''.$companystatic->getNomUrl(1, 'supplier').' | ';
print ''.price(!empty($conf->global->MAIN_DASHBOARD_USE_TOTAL_HT) ? $obj->total_ht : $obj->total_ttc).' | ';
print '
';
@@ -573,8 +573,9 @@ if (!empty($conf->ficheinter->enabled)) {
$companystatic->email = $obj->email;
$companystatic->entity = $obj->entity;
$companystatic->canvas = $obj->canvas;
+
print '';
- print '| ';
+ print ' | ';
print $fichinterstatic->getNomUrl(1);
print " | ";
print '';
@@ -654,7 +655,7 @@ if (!empty($conf->societe->enabled) && $user->rights->societe->lire) {
$companystatic->canvas = $objp->canvas;
print ' |
';
- print '| '.$companystatic->getNomUrl(1, 'customer').' | ';
+ print ''.$companystatic->getNomUrl(1, 'customer').' | ';
print '';
//print $companystatic->getLibCustProspStatut();
@@ -751,7 +752,7 @@ if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_S
$companystatic->canvas = $objp->canvas;
print ' |
';
- print '| '.$companystatic->getNomUrl(1, 'supplier').' | ';
+ print ''.$companystatic->getNomUrl(1, 'supplier').' | ';
print '';
$obj = $companystatic;
@@ -865,8 +866,8 @@ if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire && 0) { // T
$staticcontrat->ref = $obj->ref;
print ' |
';
- print '| '.$staticcontrat->getNomUrl(1).' | ';
- print ''.$companystatic->getNomUrl(1, 'customer', 44).' | ';
+ print ''.$staticcontrat->getNomUrl(1).' | ';
+ print ''.$companystatic->getNomUrl(1, 'customer', 44).' | ';
print ''.$staticcontrat->LibStatut($obj->statut, 3).' | ';
print '
';
@@ -962,7 +963,7 @@ if (!empty($conf->propal->enabled) && $user->rights->propal->lire) {
print '';
print '';
- print '| '.$propalstatic->getNomUrl(1).' | ';
+ print ''.$propalstatic->getNomUrl(1).' | ';
print ''.$warning.' | ';
print ''.$formfile->getDocumentsLink($propalstatic->element, $filename, $filedir).' | ';
print ' ';
@@ -1082,7 +1083,7 @@ if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
print '';
print '';
- print '| '.$orderstatic->getNomUrl(1).' | ';
+ print ''.$orderstatic->getNomUrl(1).' | ';
print ' | ';
print ''.$formfile->getDocumentsLink($orderstatic->element, $filename, $filedir).' | ';
print ' ';
diff --git a/htdocs/comm/propal/card.php b/htdocs/comm/propal/card.php
index c05554d2242..cf9eb2c913f 100644
--- a/htdocs/comm/propal/card.php
+++ b/htdocs/comm/propal/card.php
@@ -47,7 +47,6 @@ require_once DOL_DOCUMENT_ROOT.'/comm/action/class/actioncomm.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/propale/modules_propale.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/propal.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
-require_once DOL_DOCUMENT_ROOT.'/core/lib/signature.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
if (!empty($conf->project->enabled)) {
@@ -2875,7 +2874,7 @@ if ($action == 'create') {
if ($object->statut != Propal::STATUS_DRAFT && $useonlinesignature) {
print ' ';
- require_once DOL_DOCUMENT_ROOT.'/core/lib/payments.lib.php';
+ require_once DOL_DOCUMENT_ROOT.'/core/lib/signature.lib.php';
print showOnlineSignatureUrl('proposal', $object->ref).' ';
}
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c2d2eeced9a..0107dd8641d 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1918,10 +1918,11 @@ class Form
* @param int $noactive Show only active users (this will also happened whatever is this option if USER_HIDE_INACTIVE_IN_COMBOBOX is on).
* @param int $outputmode 0=HTML select string, 1=Array
* @param bool $multiple add [] in the name of element and add 'multiple' attribut
+ * @param int $forcecombo Force the component to be a simple combo box without ajax
* @return string HTML select string
* @see select_dolgroups()
*/
- public function select_dolusers($selected = '', $htmlname = 'userid', $show_empty = 0, $exclude = null, $disabled = 0, $include = '', $enableonly = '', $force_entity = '0', $maxlength = 0, $showstatus = 0, $morefilter = '', $show_every = 0, $enableonlytext = '', $morecss = '', $noactive = 0, $outputmode = 0, $multiple = false)
+ public function select_dolusers($selected = '', $htmlname = 'userid', $show_empty = 0, $exclude = null, $disabled = 0, $include = '', $enableonly = '', $force_entity = '0', $maxlength = 0, $showstatus = 0, $morefilter = '', $show_every = 0, $enableonlytext = '', $morecss = '', $noactive = 0, $outputmode = 0, $multiple = false, $forcecombo = 0)
{
// phpcs:enable
global $conf, $user, $langs, $hookmanager;
@@ -2124,7 +2125,7 @@ class Form
}
$out .= '';
- if ($num) {
+ if ($num && !$forcecombo) {
// Enhance with select2
include_once DOL_DOCUMENT_ROOT.'/core/lib/ajax.lib.php';
$out .= ajax_combobox($htmlname);
@@ -6451,8 +6452,8 @@ class Form
} elseif ($usecalendar == 'jquery') {
if (!$disabled) {
// Output javascript for datepicker
- $minYear = $conf->global->MIN_YEAR_SELECT_DATE ? $conf->global->MIN_YEAR_SELECT_DATE : (date('Y') - 100);
- $maxYear = $conf->global->MAX_YEAR_SELECT_DATE ? $conf->global->MAX_YEAR_SELECT_DATE : (date('Y') + 100);
+ $minYear = getDolGlobalString('MIN_YEAR_SELECT_DATE', date('Y') - 100);
+ $maxYear = getDolGlobalString('MAX_YEAR_SELECT_DATE', date('Y') + 100);
$retstring .= "
|
|