Page MenuHomePhorge

Drag & Drop: fix JavaScript error related to JX.$(undefined)
ClosedPublic

Authored by valerio.bozzolan on Apr 25 2023, 14:24.
Tags
None
Referenced Files
F2981682: D25134.1739922720.diff
Mon, Feb 17, 23:52
F2980277: D25134.1739888467.diff
Mon, Feb 17, 14:21
F2979073: D25134.1739771827.diff
Sun, Feb 16, 05:57
F2950729: D25134.1738822503.diff
Wed, Feb 5, 06:15
F2938582: D25134.1738016242.diff
Sun, Jan 26, 22:17
F2937388: D25134.1737955986.diff
Sun, Jan 26, 05:33
F2935008: D25134.1737812436.diff
Fri, Jan 24, 13:40
F2926231: D25134.1737640672.diff
Wed, Jan 22, 13:57

Details

Summary

This change fixes the following recent JavaScript error:

Error: Empty ID passed to JX.$()!

The regression was introduced here:

90f9da643d1622bcfff3a8903159aeefd1b42520

Closes T15272

Test Plan
  • with this change I was able to open Conpherence Persistent Chat and Drop a file

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

valerio.bozzolan added a subscriber: Dylsss.

Thanks @Dylsss for any opinion about this small fix

This revision is now accepted and ready to land.Apr 26 2023, 06:51

I damn like avivey when runs like:

yesyes

The unit test was happy even if ./bin/celerity map was needed. Again.

jackie_chan_wtf

To find a scientific answer I will start debugging ./src/__tests__/PhabricatorCelerityTestCase.php in the future.