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
F14761983: D20701.diff
Thu, Jan 23, 4:08 AM
Unknown Object (File)
Tue, Jan 21, 10:32 AM
Unknown Object (File)
Sat, Jan 18, 7:00 AM
Unknown Object (File)
Fri, Jan 17, 5:57 PM
Unknown Object (File)
Fri, Jan 17, 3:31 AM
Unknown Object (File)
Mon, Dec 30, 11:50 AM
Unknown Object (File)
Dec 22 2024, 7:06 AM
Unknown Object (File)
Dec 21 2024, 1:41 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.