Merge pull request #15138 from frederic34/patch-17

Update asset.class.php
This commit is contained in:
Laurent Destailleur 2020-10-25 14:13:28 +01:00 committed by GitHub
commit 13beeb0a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,8 +395,10 @@ class Asset extends CommonObject
global $langs;
$langs->load("contracts");
$labelStatus = array();
$labelStatus[self::STATUS_DRAFT] = $langs->trans('Disabled');
$labelStatus[self::STATUS_VALIDATED] = $langs->trans('Enabled');
$labelStatusShort = array();
$labelStatusShort[self::STATUS_DRAFT] = $langs->trans('Disabled');
$labelStatusShort[self::STATUS_VALIDATED] = $langs->trans('Enabled');
@ -407,7 +409,7 @@ class Asset extends CommonObject
}
/**
* Charge les informations d'ordre info dans l'objet commande
* Load info into asset object
*
* @param int $id Id of order
* @return void