1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00

Fix display of current file on Macro creation

Summary: This could hit an obscure fatal.

Test Plan:
  - Create a macro.
  - Upload a file, but don't give it a name.
  - Before: fatal.
  - After:

{F2569846}

Reviewers: chad, 20after4

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D17310
This commit is contained in:
epriestley 2017-02-03 17:02:50 -08:00
parent ab923e0a75
commit 281e9849ed

View file

@ -185,6 +185,7 @@ final class PhabricatorMacroEditController extends PhabricatorMacroController {
if (!$macro->getID()) {
if ($current_file) {
$current_file_view = id(new PhabricatorFileLinkView())
->setViewer($viewer)
->setFilePHID($current_file->getPHID())
->setFileName($current_file->getName())
->setFileViewable(true)