From bac24485c2f211864ee4490395f860a64b96b4a6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 24 Nov 2020 21:12:44 +0100 Subject: [PATCH] Fix label of project. Must use ProjectLabel instead of Label --- htdocs/projet/card.php | 9 ++++----- htdocs/projet/class/project.class.php | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 94a7b772fac..771998fbb6c 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -126,7 +126,7 @@ if (empty($reshook)) } if (!GETPOST('title')) { - setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Label")), null, 'errors'); + setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("ProjectLabel")), null, 'errors'); $error++; } @@ -236,7 +236,7 @@ if (empty($reshook)) { $error++; //$_GET["id"]=$_POST["id"]; // We return on the project card - setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Label")), null, 'errors'); + setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("ProjectLabel")), null, 'errors'); } $db->begin(); @@ -529,7 +529,7 @@ if ($action == 'create' && $user->rights->projet->creer) print ''; // Label - print ''.$langs->trans("Label").''; + print ''.$langs->trans("ProjectLabel").''; // Usage (opp, task, bill time, ...) print ''; @@ -804,10 +804,9 @@ if ($action == 'create' && $user->rights->projet->creer) print ''; // Label - print ''.$langs->trans("Label").''; + print ''.$langs->trans("ProjectLabel").''; print ''; - // Status print ''.$langs->trans("Status").''; print '