Page MenuHomePhabricator

Fix an issue where the "viewer" is not passed to Bulk Edit controls properly
ClosedPublic

Authored by epriestley on Sep 26 2019, 6:47 PM.
Tags
None
Referenced Files
F13089906: D20841.diff
Thu, Apr 25, 2:03 AM
Unknown Object (File)
Tue, Apr 23, 7:50 PM
Unknown Object (File)
Tue, Apr 23, 4:02 PM
Unknown Object (File)
Tue, Apr 23, 2:20 AM
Unknown Object (File)
Fri, Apr 19, 6:32 AM
Unknown Object (File)
Fri, Apr 5, 1:54 AM
Unknown Object (File)
Sat, Mar 30, 6:42 AM
Unknown Object (File)
Thu, Mar 28, 6:29 PM
Subscribers
None

Details

Summary

See PHI1442. If you have a bulk-editable datasource field with a composite datasource, it can currently fatal on the bulk edit workflow because the viewer is not passed correctly.

The error looks something like this:

Argument 1 passed to PhabricatorDatasourceEngine::setViewer() must be an instance of PhabricatorUser, null given, called in /Users/epriestley/dev/core/lib/phabricator/src/applications/typeahead/datasource/PhabricatorTypeaheadCompositeDatasource.php on line 231

Test Plan

Configured a Maniphest custom field with a composite datasource, then tried a bulk edit. Things worked cleanly instead of fataling.

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.Sep 26 2019, 7:03 PM
This revision was automatically updated to reflect the committed changes.