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
F18169160: D14571.id35253.diff
Fri, Aug 15, 4:30 PM
F18104931: D14571.id35252.diff
Sun, Aug 10, 3:09 PM
F18101582: D14571.id.diff
Sat, Aug 9, 2:25 PM
F18097595: D14571.diff
Fri, Aug 8, 2:31 PM
F18014150: D14571.id35252.diff
Sat, Aug 2, 5:20 PM
F17929173: D14571.id35253.diff
Wed, Jul 30, 4:47 PM
F17851003: D14571.id35252.diff
Sun, Jul 27, 10:47 AM
Unknown Object (File)
Jun 29 2025, 2:20 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.