Browse Source
edit.php 1. In the instance setting, users who should receive the application notification would not save. a. Solution: Save the users to table enrol->customtext3. edit-form.php 1. In the instance setting, users who selected to receive the application notification would not set as selected (may confusing people). a. Solution: Query to table ‘enrol’ and the selected users as selected. lib.php 1. After make change to instance settings, users with ‘enrol/apply:manageapplications’ capability would not receive enrollment application notification. a. Sender and receiver share the same variable ($user) in send_application_notification() b. The sender in send_application_notification() is set to $contact, which assigned to user with ‘enrol/apply:manageapplications’. 2. Variable $value in get_notifycoursebased_users() is assigned to $instance->customtext2, while customtext2 is the Custom Label. Therefore, this function would not return the user should receive application notification. a. Solution: change customtext2 to custometext3. 3. Admin will receive two notification from one application. a. get_users_from_config() in get_notifyglobal_users() without a ‘false’ in third parameter. b. Solution: add ‘false’ to third parameter. Environment: Moodle v3.6.2+ (build )SABERES_37_STABLE
Chiew Wei Chieng
6 years ago
3 changed files with 27 additions and 12 deletions
Loading…
Reference in new issue