mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX Accountancy - Journal - problem with displaying label in getNomUrl (#26424)
This commit is contained in:
parent
f18e7dd8b2
commit
e2debe7cd8
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user