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:
parent
ab923e0a75
commit
281e9849ed
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue