diff --git a/.github/workflows/moodle-release.yml b/.github/workflows/moodle-release.yml index 46380e3..932653e 100644 --- a/.github/workflows/moodle-release.yml +++ b/.github/workflows/moodle-release.yml @@ -121,7 +121,7 @@ jobs: FUNCTION: local_plugins_add_version run: | - ZIPURL="https://github.com/danmarsden/moodle-mod_attendance/archive/refs/heads/{BRANCH}.zip" + ZIPURL="https://github.com/danmarsden/moodle-mod_attendance/archive/refs/heads/${BRANCH}.zip" RESPONSE=$(${CURL} ${ENDPOINT} --data-urlencode "wstoken=${TOKEN}" \ --data-urlencode "wsfunction=${FUNCTION}" \ --data-urlencode "moodlewsrestformat=json" \ diff --git a/classes/structure.php b/classes/structure.php index bd03cee..145b0d1 100644 --- a/classes/structure.php +++ b/classes/structure.php @@ -805,7 +805,7 @@ class mod_attendance_structure { global $DB; $fields = array('username' , 'idnumber' , 'institution' , 'department', 'city', 'country'); - $userf = \core_user\fields::for_identity($this->context)->with_userpic()->including(...$fields); + $userf = \core_user\fields::for_identity($this->context, false)->with_userpic()->including(...$fields); $userfields = $userf->get_sql('u', false, '', 'id', false)->selects; if (empty($this->pageparams->sort)) {