Commit d2280619 authored by thejoelinux's avatar thejoelinux

correction bouton credit non pris en compte dans adhesion

parent 51932c59
......@@ -201,6 +201,7 @@ class MembersController extends AppController {
$member->save_account();
}
*/
$_REQUEST["credit"] = ($_REQUEST["credit"] == "on") ? 1 : 0;
$member->create_subscription();
$member->fetch_subscriptions();
$this->set("member", $member);
......@@ -220,6 +221,7 @@ class MembersController extends AppController {
$member = Member::fetch($GLOBALS["data"]->db_escape_string($_REQUEST["i"]));
if($member->id != 0) {
$_REQUEST["member_id"] = $member->id;
$_REQUEST["credit"] = ($_REQUEST["credit"] == "on") ? 1 : 0;
$member->update_subscription();
$member->fetch_subscriptions();
$this->set("member", $member);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment