diff --git a/htdocs/accountancy/admin/fiscalyear_card.php b/htdocs/accountancy/admin/fiscalyear_card.php index ee587a31f96..477fac08eee 100644 --- a/htdocs/accountancy/admin/fiscalyear_card.php +++ b/htdocs/accountancy/admin/fiscalyear_card.php @@ -1,6 +1,6 @@ - * Copyright (C) 2018 Frédéric France + * Copyright (C) 2018-2024 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 @@ -109,7 +109,7 @@ if ($action == 'confirm_delete' && $confirm == "yes") { $object->date_start = $date_start; $object->date_end = $date_end; $object->label = GETPOST('label', 'alpha'); - $object->status = GETPOST('status', 'int'); + $object->status = GETPOSTINT('status'); $object->datec = dol_now(); if (empty($object->date_start) && empty($object->date_end)) { @@ -152,7 +152,7 @@ if ($action == 'confirm_delete' && $confirm == "yes") { $object->date_start = GETPOST("fiscalyear") ? $date_start : ''; $object->date_end = GETPOST("fiscalyearend") ? $date_end : ''; $object->label = GETPOST('label', 'alpha'); - $object->status = GETPOST('status', 'int'); + $object->status = GETPOSTINT('status'); $result = $object->update($user);