From 5f3c81daeebae3c5a2e835d076b82c66044d8482 Mon Sep 17 00:00:00 2001 From: BENKE Charlene <1179011+defrance@users.noreply.github.com> Date: Thu, 20 Jan 2022 17:06:03 +0100 Subject: [PATCH] FIX if we have PRODUCT_USE_UNITS, task fail we need public function getLabelOfUnit($type = 'long') fonction or printlineOriginLine fail --- htdocs/projet/class/task.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php index 87a66279714..56db0bd2a64 100644 --- a/htdocs/projet/class/task.class.php +++ b/htdocs/projet/class/task.class.php @@ -4,6 +4,7 @@ * Copyright (C) 2014 Marcos García * Copyright (C) 2018 Frédéric France * Copyright (C) 2020 Juanjo Menent + * Copyright (C) 2022 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +33,7 @@ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php'; /** * Class to manage tasks */ -class Task extends CommonObject +class Task extends CommonObjectLine { /** * @var string ID to identify managed object