From 3c176adb381f27a4aac8af5dd21148c9bad296e4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Jul 2018 16:46:30 +0200 Subject: [PATCH] Fix more complete fix for bad label in creating invoice from other obj --- htdocs/compta/facture/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index a2044bfe4ba..457f03c6afc 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -3217,7 +3217,7 @@ if ($action == 'create') $newclassname = 'Intervention'; break; default: - $newclassname = $classname; + $newclassname = get_class($objectsrc); } print '' . $langs->trans($newclassname) . '' . $objectsrc->getNomUrl(1);