Page MenuHomePhabricator

Fix a warning in BoardLayoutEngine when no objects are being updated
ClosedPublic

Authored by epriestley on Aug 7 2019, 4:20 PM.
Tags
None
Referenced Files
F18110803: D20701.id49365.diff
Tue, Aug 12, 12:10 AM
F18106328: D20701.id.diff
Sun, Aug 10, 10:14 PM
F18100159: D20701.diff
Sat, Aug 9, 11:30 AM
F17728667: D20701.id49365.diff
Jul 19 2025, 4:49 PM
Unknown Object (File)
May 29 2025, 8:14 AM
Unknown Object (File)
May 7 2025, 8:27 PM
Unknown Object (File)
Apr 30 2025, 10:33 AM
Unknown Object (File)
Apr 28 2025, 1:17 AM
Subscribers
None

Details

Summary

Fixes T13368. Some workflows (like "Move tasks to...") execute board layout without objects to update. In these cases, we can hit a warning because objectPHIDs is not initialized to array().

Test Plan

Went through the "Move tasks to..." workflow on a workboard, no longer saw a warning when trying to iterate over an empty objectPHIDs list.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Aug 8 2019, 5:18 PM
This revision was automatically updated to reflect the committed changes.