else {
$this->_workflow_id = $this->_values['workflow_id'] ?? NULL;
$this->checkUserPermission($this->_workflow_id);
- $this->assign('workflow_id', $this->_workflow_id);
+ $this->assign('isWorkflow', (bool) ($this->_values['workflow_id'] ?? NULL));
if ($this->_workflow_id) {
$selectedChild = 'workflow';
];
if (!($this->_action & CRM_Core_Action::DELETE)) {
$buttons[] = [
- 'type' => 'submit',
+ 'type' => 'upload',
'name' => ts('Save and Done'),
'subName' => 'done',
];
* The input form values.
* @param array $files
* The uploaded files if any.
- * @param array $self
+ * @param self $self
*
* @return array
* array of errors