From e0ba1e63a9b911ca2d61dfb1267e0f5a15c011fb Mon Sep 17 00:00:00 2001 From: Flottertotte Date: Thu, 27 Aug 2015 16:42:08 +0800 Subject: [PATCH] fixed bug fixed bug when profile fields are switched off --- lib.php | 3 ++- version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib.php b/lib.php index 58eeda6..c2d6199 100644 --- a/lib.php +++ b/lib.php @@ -103,8 +103,9 @@ class enrol_apply_plugin extends enrol_plugin { //$res = $DB->update_record('user',$userInfoProfile); }else{ profile_save_data($userInfo); - $res = $DB->update_record('user',$userInfo); + //$res = $DB->update_record('user',$userInfo); } + $enrol = enrol_get_plugin('self'); $timestart = time(); if ($instance->enrolperiod) { diff --git a/version.php b/version.php index 4951684..f509e18 100644 --- a/version.php +++ b/version.php @@ -18,7 +18,7 @@ */ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2015071503; +$plugin->version = 2015071504; $plugin->requires = 2011080100; $plugin->maturity = MATURITY_STABLE; $plugin->release = 'Course Enrol Apply Plugin Version 1.3.1 (build 2014091000)';