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
F19283256: D17720.diff
Dec 23 2025, 4:43 AM
F18682151: D17720.diff
Sep 26 2025, 5:17 AM
F18680912: D17720.diff
Sep 26 2025, 3:28 AM
F18679156: D17720.id.diff
Sep 26 2025, 12:32 AM
F18669741: D17720.diff
Sep 24 2025, 9:45 PM
F18230720: D17720.id.diff
Aug 20 2025, 1:00 PM
F18222584: D17720.diff
Aug 19 2025, 9:20 PM
F18109699: D17720.id.diff
Aug 11 2025, 3:09 PM
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