Page MenuHomePhabricator

D20841.id49683.diff
No OneTemporary

D20841.id49683.diff

diff --git a/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php b/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php
--- a/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php
+++ b/src/applications/transactions/bulk/type/BulkTokenizerParameterType.php
@@ -22,7 +22,8 @@
$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
--- a/src/applications/transactions/editengine/PhabricatorEditEngine.php
+++ b/src/applications/transactions/editengine/PhabricatorEditEngine.php
@@ -2523,6 +2523,8 @@
}
final public function newBulkEditMap() {
+ $viewer = $this->getViewer();
+
$config = $this->loadDefaultConfiguration();
if (!$config) {
throw new Exception(
@@ -2542,6 +2544,8 @@
continue;
}
+ $bulk_type->setViewer($viewer);
+
$bulk_label = $type->getBulkEditLabel();
if ($bulk_label === null) {
continue;

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 25, 10:55 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722844
Default Alt Text
D20841.id49683.diff (1 KB)

Event Timeline