diff --git a/htdocs/compta/bank/class/bankcateg.class.php b/htdocs/compta/bank/class/bankcateg.class.php index 581bc5fd1da..9ee8bb66a05 100644 --- a/htdocs/compta/bank/class/bankcateg.class.php +++ b/htdocs/compta/bank/class/bankcateg.class.php @@ -45,6 +45,26 @@ class BankCateg // extends CommonObject */ public $label; + /** + * @var DoliDB + */ + protected $db; + + /** + * @var string error + */ + public $error; + + /** + * @var array errors + */ + public $errors; + + /** + * @var array context + */ + public $context; + /** * Constructor @@ -278,7 +298,7 @@ class BankCateg // extends CommonObject // Load source object $object->fetch($fromid); $object->id = 0; - $object->statut = 0; + // $object->statut = 0; // Create clone $object->context['createfromclone'] = 'createfromclone'; diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 9cb32aa428e..8a8e4245005 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -9,7 +9,7 @@ * Copyright (C) 2019 Nicolas ZABOURI * Copyright (C) 2020 Tobias Sekan * Copyright (C) 2020 Josep Lluís Amador - * Copyright (C) 2021 Frédéric France + * Copyright (C) 2021-2023 Frédéric France * * 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 @@ -487,7 +487,7 @@ if (isModEnabled('don') && !empty($user->rights->don->lire)) { print "\n"; } } else { - print ''.$langs->trans("None").''; + print ''.$langs->trans("None").''; } print '
'; } else {