From a5621c83c229e34c682ff3c09ffb4b46b8267c98 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 20 Jun 2024 20:11:50 +0200 Subject: [PATCH] Fix deprecated var --- htdocs/societe/class/companypaymentmode.class.php | 1 + htdocs/societe/paymentmodes.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/class/companypaymentmode.class.php b/htdocs/societe/class/companypaymentmode.class.php index 087fbf03d95..c6bf2a70fc8 100644 --- a/htdocs/societe/class/companypaymentmode.class.php +++ b/htdocs/societe/class/companypaymentmode.class.php @@ -301,6 +301,7 @@ class CompanyPaymentMode extends CommonObject // For backward compatibility $this->iban = $this->iban_prefix; + $this->date_modification = $this->tmps; //if ($result > 0 && !empty($this->table_element_line)) $this->fetchLines(); return $result; diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php index b221416eb5a..2ca7e37761c 100644 --- a/htdocs/societe/paymentmodes.php +++ b/htdocs/societe/paymentmodes.php @@ -1308,7 +1308,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard' print $s; print ''; print ''; - print dol_print_date($companypaymentmodetemp->tms, 'dayhour'); + print dol_print_date($companypaymentmodetemp->date_modification, 'dayhour'); print ''; // Fields from hook $parameters = array('arrayfields' => array(), 'obj' => $obj, 'linetype' => 'stripecard');