Skip to content
Snippets Groups Projects
Unverified Commit cf8af132 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4562 from aydreeihn/issue/session-attachments2

oops: put back missing code
parents e287c7fa 8ef9b634
Branches
Tags
No related merge requests found
......@@ -1088,6 +1088,8 @@ implements TemplateVariable {
if ($info instanceof AttachmentFile)
$fileId = $info->getId();
elseif (is_array($info) && isset($info['id']))
$fileId = $info['id'];
elseif ($AF = AttachmentFile::create($info))
$fileId = $AF->getId();
elseif ($add_error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment