From 2dfbed8c1e6e718f55ea40812dcdb727ed8d2bd7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 26 Feb 2011 10:18:29 +0000 Subject: [PATCH] New: Can create third party when creating subscription. --- htdocs/adherents/card_subscriptions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/card_subscriptions.php b/htdocs/adherents/card_subscriptions.php index dada4920d45..b79f6d3a434 100644 --- a/htdocs/adherents/card_subscriptions.php +++ b/htdocs/adherents/card_subscriptions.php @@ -719,8 +719,11 @@ if ($rowid) code=jQuery("#selectoperation option:selected").val(); if (code == \'CHQ\') { - jQuery(\'#fieldchqemetteur\').val(jQuery(\'#memberlabel\').val()); jQuery(\'.fieldrequireddyn\').addClass(\'fieldrequired\'); + if (jQuery(\'#fieldrequireddyn\').val() == \'\') + { + jQuery(\'#fieldchqemetteur\').val(jQuery(\'#memberlabel\').val()); + } } else {