From 4ed2db6d21ee71ac7e47d1fef2d34c1b21e03e0a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 25 Jun 2019 11:08:14 +0200 Subject: [PATCH] Fix bad id --- htdocs/adherents/subscription.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/subscription.php b/htdocs/adherents/subscription.php index 6d2889d02bb..d637c6ee252 100644 --- a/htdocs/adherents/subscription.php +++ b/htdocs/adherents/subscription.php @@ -713,12 +713,12 @@ if ($rowid > 0) $objp = $db->fetch_object($result); $adh->id = $objp->rowid; - $adh->type = $obj->type; + $adh->typeid = $obj->type; $subscriptionstatic->ref=$objp->crowid; $subscriptionstatic->id=$objp->crowid; - $typeid = ($objp->cfk_type > 0 ? $objp->cfk_type : $adh->typeid); + $typeid = ($objp->cfk_type > 0 ? $objp->cfk_type : $objp->typeid); if ($typeid > 0) { $adht->fetch($typeid);