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

Incorrect Data Policy file path stored in GDPR settings #80

Closed
oskylark opened this issue May 3, 2018 · 1 comment
Closed

Incorrect Data Policy file path stored in GDPR settings #80

oskylark opened this issue May 3, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@oskylark
Copy link

oskylark commented May 3, 2018

function saveTCFile in /CRM/Gdpr/Form/Settings.php misses out a / in the file path when storing the uploaded data policy file. This results in the link provided on the GDPR settings and the Communications Preferences pages not working.

Current line 302:
if ($saved) { return $this->getFileUrl($publicUploadDir . $fileName); }

whereas it should be as in the "file_exists" check earlier in the function (line 294):
if ($saved) { return $this->getFileUrl($publicUploadDir . '/' . $fileName); }

@veda-consulting
Copy link
Member

Released 2.4

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

No branches or pull requests

3 participants