Skip to content
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

Open
wants to merge 10 commits into
base: MOODLE_404_STABLE
Choose a base branch
from

Conversation

ricardoh34
Copy link

I think there are no tabs now, Still the same code for naming the user certificate

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.
@mdjnelson
Copy link
Owner

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.

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.
@ricardoh34
Copy link
Author

I think I squashed but I´m not used to github, sorry

@ricardoh34 ricardoh34 closed this Aug 29, 2024
@ricardoh34 ricardoh34 reopened this Aug 29, 2024
@ricardoh34
Copy link
Author

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));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -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)) {
Copy link
Owner

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?

@mdjnelson
Copy link
Owner

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)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants