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
F18815740: D14571.diff
Tue, Oct 21, 3:28 AM
F18770678: D14571.id.diff
Wed, Oct 8, 2:10 PM
F18762146: D14571.id35252.diff
Mon, Oct 6, 5:44 PM
F18752310: D14571.id.diff
Sat, Oct 4, 2:49 PM
F18746394: D14571.diff
Fri, Oct 3, 12:19 PM
F18710842: D14571.diff
Mon, Sep 29, 2:58 AM
F18169160: D14571.id35253.diff
Aug 15 2025, 4:30 PM
F18104931: D14571.id35252.diff
Aug 10 2025, 3:09 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.