diff --git a/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php b/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php index a48f8877d5..59682412fd 100644 --- a/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php +++ b/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php @@ -22,7 +22,8 @@ final class BulkTokenizerParameterType $template = new AphrontTokenizerTemplateView(); $template_markup = $template->render(); - $datasource = $this->getDatasource(); + $datasource = $this->getDatasource() + ->setViewer($this->getViewer()); return array( 'markup' => (string)hsprintf('%s', $template_markup), diff --git a/src/applications/transactions/editengine/PhabricatorEditEngine.php b/src/applications/transactions/editengine/PhabricatorEditEngine.php index 0986247454..14143c733a 100644 --- a/src/applications/transactions/editengine/PhabricatorEditEngine.php +++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php @@ -2523,6 +2523,8 @@ abstract class PhabricatorEditEngine } final public function newBulkEditMap() { + $viewer = $this->getViewer(); + $config = $this->loadDefaultConfiguration(); if (!$config) { throw new Exception( @@ -2542,6 +2544,8 @@ abstract class PhabricatorEditEngine continue; } + $bulk_type->setViewer($viewer); + $bulk_label = $type->getBulkEditLabel(); if ($bulk_label === null) { continue;