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

Fix log error when creating files from an empty template #26963

Merged
merged 1 commit into from
May 19, 2021

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented May 12, 2021

Without the event might be called with an undefined variable in

$this->eventDispatcher->dispatchTyped(new FileCreatedFromTemplateEvent($template, $targetFile));

Fixes #26817

@juliusknorr
Copy link
Member Author

/backport to stable21

@ghost
Copy link

ghost commented May 12, 2021

Applied the changes; looks like this fixed it ##26817 Thank you!

@rullzer rullzer force-pushed the bugfix/noid/empty-template-error branch from d55f83f to b8d0249 Compare May 18, 2021 08:23
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 18, 2021
@juliusknorr
Copy link
Member Author

Retriggered drone

@rullzer rullzer merged commit aa785d2 into master May 19, 2021
@rullzer rullzer deleted the bugfix/noid/empty-template-error branch May 19, 2021 06:46
@MorrisJobke
Copy link
Member

/backport to stable21

@backportbot-nextcloud
Copy link

The backport to stable21 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Undefined variable: template at /var/www/nextcloud/lib/private/Files/Template/TemplateManager.php#174
3 participants