Page MenuHomePhabricator

When a transaction has no quote ref, render "@user wrote:" properly
ClosedPublic

Authored by epriestley on Apr 18 2017, 4:07 PM.
Tags
None
Referenced Files
F15461576: D17720.diff
Tue, Apr 1, 9:21 AM
F15454465: D17720.diff
Sat, Mar 29, 6:37 PM
F15442228: D17720.id.diff
Wed, Mar 26, 10:13 PM
F15416059: D17720.id.diff
Thu, Mar 20, 8:59 AM
F15408123: D17720.id42616.diff
Tue, Mar 18, 9:22 PM
F15282801: D17720.diff
Mar 4 2025, 2:30 AM
Unknown Object (File)
Feb 9 2025, 3:50 AM
Unknown Object (File)
Feb 9 2025, 3:50 AM
Subscribers
None

Details

Summary

Fixes T12576. In Javascript, data.ref is null, which is getting turned into /quote/?ref=null.

The code already handles this case, just not with ref=null happening in JS:

https://secure.phabricator.com/source/phabricator/browse/master/src/applications/transactions/controller/PhabricatorApplicationTransactionCommentQuoteController.php;b54adc6161c205e146fabb801ca53a44d94da444$47-52

Test Plan

Screen Shot 2017-04-18 at 9.04.32 AM.png (173×411 px, 11 KB)

  • Also quoted a normal comment on a normal object in a normal way.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable