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
F15485698: D20701.diff
Thu, Apr 10, 1:54 AM
F15473141: D20701.diff
Sat, Apr 5, 7:46 PM
F15456298: D20701.id49370.diff
Sun, Mar 30, 8:30 AM
F15455229: D20701.id49365.diff
Sat, Mar 29, 11:00 PM
F15451423: D20701.id.diff
Fri, Mar 28, 10:00 PM
F15445149: D20701.diff
Mar 27 2025, 12:35 PM
F15388312: D20701.id.diff
Mar 15 2025, 3:38 AM
F15353277: D20701.id49370.diff
Mar 10 2025, 8:45 PM
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.