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

ensure pdfFilename is set #11702

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

jmcclelland
Copy link
Contributor

Avoid setting the filename to a non-existent variable.

Overview

When downloading a PDF file receipt, the name you are prompted to save it as is not properly set. If it simply set to: .pdf.

Before

pdf-receipt-before

After

The downloaded file name is named after the invoice id.

Technical Details

The pdf filename is properly set in the file, but then overwritten in later, incorrect code. I have simply removed the incorrect code that overwrites the properly set variable.

Avoid setting the filename to a non-existent variable.
Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

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

Agree with the changes as I see $invoiceNumber is not initialized anywhere in the file and was a wrong assignment. It was removed in https://github.com/civicrm/civicrm-core/pull/10681/files#diff-182432c905361c156662ac29df474a99 . ping @eileenmcnaughton @colemanw

@yashodha
Copy link
Contributor

@jmcclelland Does this have a related ticket?

@yashodha
Copy link
Contributor

works fine.

@jmcclelland
Copy link
Contributor Author

Hi Yashado,

No related ticket. I wasn't sure where we are in the process of moving the issue tracker.

@seamuslee001
Copy link
Contributor

  • (r-explain) Pass even tho there is no JIRA there seems to be enough on the PR to explain what is going on
  • (r-test) Pass
  • (r-code) Pass code change makes sense
  • (r-doc) Pass
  • (r-maint) Pass
  • (r-run) Pass run by Yash
  • (r-user) Pass improves user experience
  • (r-tech) Pass

@seamuslee001 seamuslee001 merged commit 4e99154 into civicrm:master Feb 27, 2018
@mlutfy mlutfy added this to the 4.7.32 milestone Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants