diff --git a/htdocs/don/class/paymentdonation.class.php b/htdocs/don/class/paymentdonation.class.php index 55d7ba74ff0..9eae77ae97a 100644 --- a/htdocs/don/class/paymentdonation.class.php +++ b/htdocs/don/class/paymentdonation.class.php @@ -201,7 +201,7 @@ class PaymentDonation extends CommonObject $resql = $this->db->query($sql); if ($resql) { $this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."payment_donation"); - $this->ref = $this->id; + $this->ref = (string) $this->id; } else { $error++; } @@ -544,7 +544,7 @@ class PaymentDonation extends CommonObject { $this->id = 0; - $this->fk_donation = ''; + $this->fk_donation = 0; $this->datec = ''; $this->tms = ''; $this->datep = ''; @@ -553,9 +553,9 @@ class PaymentDonation extends CommonObject $this->paymenttype = ''; $this->num_payment = ''; $this->note_public = ''; - $this->fk_bank = ''; - $this->fk_user_creat = ''; - $this->fk_user_modif = ''; + $this->fk_bank = 0; + $this->fk_user_creat = dol_now(); + $this->fk_user_modif = dol_now(); }