Page MenuHomePhabricator

Fix handling of implicit comment transaction in paste creation
ClosedPublic

Authored by epriestley on Nov 25 2015, 4:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 6 2025, 2:15 PM
Unknown Object (File)
Apr 27 2025, 1:39 AM
Unknown Object (File)
Apr 26 2025, 10:20 PM
Unknown Object (File)
Apr 25 2025, 1:12 AM
Unknown Object (File)
Apr 24 2025, 1:50 PM
Unknown Object (File)
Apr 23 2025, 6:39 PM
Unknown Object (File)
Apr 23 2025, 2:07 PM
Unknown Object (File)
Apr 21 2025, 8:40 PM
Subscribers
None

Details

Summary

Fixes T9850. The getComment() test should be a hasComment() test, in order to discard empty comments.

Also backport a couple of future fixes which can get you into trouble if you reconfigure forms in awkward ways.

Test Plan

Created a new paste without a comment.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix handling of implicit comment transaction in paste creation.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Nov 25 2015, 4:24 PM
This revision was automatically updated to reflect the committed changes.