Differential D10585 Diff 25583 src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/customfield/PhabricatorDashboardPanelSearchQueryCustomField.php
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | public function renderEditControl(array $handles) { | ||||
Javelin::initBehavior( | Javelin::initBehavior( | ||||
'dashboard-query-panel-select', | 'dashboard-query-panel-select', | ||||
array( | array( | ||||
'applicationID' => $this->getFieldControlID($app_control_key), | 'applicationID' => $this->getFieldControlID($app_control_key), | ||||
'queryID' => $this->getFieldControlID(), | 'queryID' => $this->getFieldControlID(), | ||||
'options' => $queries, | 'options' => $queries, | ||||
'value' => array( | 'value' => array( | ||||
'key' => strlen($value) ? $value : null, | 'key' => strlen($value) ? $value : null, | ||||
'name' => $name | 'name' => $name, | ||||
) | ), | ||||
)); | )); | ||||
return id(new AphrontFormSelectControl()) | return id(new AphrontFormSelectControl()) | ||||
->setID($this->getFieldControlID()) | ->setID($this->getFieldControlID()) | ||||
->setLabel($this->getFieldName()) | ->setLabel($this->getFieldName()) | ||||
->setCaption($this->getCaption()) | ->setCaption($this->getCaption()) | ||||
->setName($this->getFieldKey()) | ->setName($this->getFieldKey()) | ||||
->setValue($this->getFieldValue()) | ->setValue($this->getFieldValue()) | ||||
->setOptions($options); | ->setOptions($options); | ||||
} | } | ||||
} | } |