Skip to content

Commit

Permalink
Fix issue - session booking notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-lmsace committed Jan 24, 2024
1 parent bdc6fdc commit 82fe336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conditions/session/classes/conditionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ public function is_user_completed($instancedata, $userid, \completion_info $comp
global $DB;

// Get the notification suppres module ids.
$additional = $instancedata->conditions['session'] ?? [];
$additional = $instancedata->condition['session'] ?? [];
$modules = $additional['modules'] ?? '';
if (!empty($modules)) {
$result = [];

$sql = "SELECT * FROM {facetoface_signups} f2f_su
$sql = "SELECT count(*) FROM {facetoface_signups} f2f_su
JOIN {facetoface_sessions} f2f_ss ON f2f_ss.id = f2f_su.sessionid
WHERE f2f_ss.facetoface = :f2fid AND f2f_su.userid = :userid";

Expand Down
2 changes: 1 addition & 1 deletion conditions/session/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'pulsecondition_session';
$plugin->version = 2023080203;
$plugin->version = 2023080204;
$plugin->dependencies = array('mod_facetoface' => 2021113000); // Dependencies set for the session module "Face to Face".

0 comments on commit 82fe336

Please sign in to comment.