Skip to content

Commit

Permalink
API Standardise extension hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 25, 2024
1 parent 1ef6b77 commit 24e598a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/DataObjects/WorkflowInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ public function getWorkflowFields()
$fields->push(HiddenField::create('TransitionID', ''));
// Let the Active Action update the fields that the user can interact with so that data can be
// stored for the workflow.
$action->updateWorkflowFields($fields);
$action->invokeWithExtensions('updateWorkflowFields', $fields);
return $fields;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/AdvancedWorkflowExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function startworkflow($data, $form, $request)
*
* @param Form $form
*/
public function updateEditForm(Form $form)
protected function updateEditForm(Form $form)
{
Requirements::javascript('symbiote/silverstripe-advancedworkflow:client/dist/js/advancedworkflow.js');
$service = singleton(WorkflowService::class);
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/WorkflowEmbargoExpiryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ public function getIsUnPublishScheduled()
* @param Member $member
* @return bool|null
*/
public function canEdit($member)
protected function canEdit($member)
{
if (!Permission::check('EDIT_EMBARGOED_WORKFLOW') && // not given global/override permission to edit
!$this->owner->AllowEmbargoedEditing) { // item flagged as not editable
Expand Down

0 comments on commit 24e598a

Please sign in to comment.