FIX Accountancy - Journal - problem with displaying label in getNomUrl (#26424)

This commit is contained in:
Alexandre SPANGARO
2023-11-01 14:23:24 +01:00
committed by GitHub
parent f18e7dd8b2
commit e2debe7cd8

View File

@@ -228,7 +228,7 @@ class AccountingJournal extends CommonObject
}
/**
* Return clicable name (with picto eventually)
* Return clickable name (with picto eventually)
*
* @param int $withpicto 0=No picto, 1=Include picto into link, 2=Only picto
* @param int $withlabel 0=No label, 1=Include label of journal, 2=Include nature of journal
@@ -281,7 +281,7 @@ class AccountingJournal extends CommonObject
}
$label_link = $this->code;
if ($withlabel != 2 && !empty($this->label)) {
if ($withlabel == 1 && !empty($this->label)) {
$label_link .= ' - '.($nourl ? '<span class="opacitymedium">' : '').$langs->transnoentities($this->label).($nourl ? '</span>' : '');
}
if ($withlabel == 2 && !empty($this->nature)) {