From f7a53eebfb4999ed570703db17dc95a52098b7ce Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Dec 2012 13:39:42 +0100 Subject: [PATCH] Fix: Suggested start date of subscription must be validation date. --- htdocs/adherents/card_subscriptions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index 92cac53a18f..e13a5bbef61 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -852,11 +852,12 @@ if ($rowid) $datefrom=dol_time_plus_duree($object->datefin,1,'d'); } else - { - $datefrom=dol_now(); + { + //$datefrom=dol_now(); + $datefrom=$object->datevalid; } } - $form->select_date($datefrom,'','','','',"cotisation"); + $form->select_date($datefrom,'','','','',"cotisation",1,1); print ""; // Date end subscription