Wrong language file load for dashboard

This commit is contained in:
Alexandre SPANGARO 2019-12-17 22:40:11 +01:00
parent 4a734e53a6
commit 1fb0d7a0f7

View File

@ -2352,7 +2352,7 @@ class ExpenseReport extends CommonObject
$resql=$this->db->query($sql);
if ($resql)
{
$langs->load("members");
$langs->load("trips");
$response = new WorkboardResponse();
if ($option == 'toapprove')
@ -2409,7 +2409,7 @@ class ExpenseReport extends CommonObject
{
global $conf;
//Only valid members
// Only valid expenses reports
if ($option == 'toapprove' && $this->status != 2) return false;
if ($option == 'topay' && $this->status != 5) return false;