diff --git a/htdocs/fourn/commande/card.php b/htdocs/fourn/commande/card.php index aa31178d546..1fc43e846be 100644 --- a/htdocs/fourn/commande/card.php +++ b/htdocs/fourn/commande/card.php @@ -1534,6 +1534,7 @@ if ($action == 'create') { if (!empty($origin) && !empty($originid)) { // Parse element/subelement (ex: project_task) $element = $subelement = $origin; + $classname = ucfirst($subelement); $regs = array(); if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) { $element = $regs[1];