-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moodle-mod_customcert_patch_rh #637
base: MOODLE_404_STABLE
Are you sure you want to change the base?
Moodle-mod_customcert_patch_rh #637
Conversation
Include name of student and name of the course in the PDF certificate so as to ease organization of the certificates downloaded, solving issue mdjnelson#455
Changed tabs and try to distinguish fullname and full_name. If still persists the error maybe we can´t use fullname($USER)? I have added also defined('moodle_internal') || die(); if that´s the problem.
Add student name to PDF certificate file
@mdjnelson ammendments and corrections. I have changed full_name to fullname again. I expect everything works now.
Added original space in line 266.
Can you squash all your commits and please look at https://github.com/mdjnelson/moodle-mod_customcert/pull/637/files to confirm all tabs are gone and you are just adding what is necessary? Thanks. |
3cbcd9a
to
94cfd4b
Compare
Include name of student and name of the course in the PDF certificate so as to ease organization of the certificates downloaded, solving issue mdjnelson#455 Erase tabs Added new space in line 266 Added original space in line 266. Corrected mistakes from @mdjnelson comments @mdjnelson ammendments and corrections. I have changed full_name to fullname again. I expect everything works now. Add student name to PDF certificate file Add student name to PDF certificate file Update template.php Changed tabs and try to distinguish fullname and full_name. If still persists the error maybe we can´t use fullname($USER)? I have added also defined('moodle_internal') || die(); if that´s the problem.
…icardoh34/moodle-mod_customcert into moodle-mod_customcert_patch_rh
I think I squashed but I´m not used to github, sorry |
Hope it´s ok now |
FROM {customcert} c, {course} cr | ||
WHERE c.id = :templateid | ||
AND c.course = cr.id"; | ||
$course = $DB->get_record_sql($sql, array('templateid' => $this->id)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SQL parameters have to be aligned. See https://moodledev.io/general/development/policies/codingstyle/sql#indentation.
@@ -273,7 +273,7 @@ public function delete_element($elementid) { | |||
public function generate_pdf(bool $preview = false, ?int $userid = null, bool $return = false) { | |||
global $CFG, $DB, $USER; | |||
|
|||
if (empty($userid)) { | |||
if (empty($userid)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this change made?
Can you please squash all your commits and include the issue number from https://github.com/mdjnelson/moodle-mod_customcert/issues if there is any? Your commit message could be something like - "Add user and filename to generates PDF (#123)" |
I think there are no tabs now, Still the same code for naming the user certificate