Skip to content

Commit 9371bc1

Browse files
API Standardise extension hooks (#547)
1 parent 1ef6b77 commit 9371bc1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/DataObjects/WorkflowInstance.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,6 @@ public function getWorkflowFields()
669669
$fields->push(HiddenField::create('TransitionID', ''));
670670
// Let the Active Action update the fields that the user can interact with so that data can be
671671
// stored for the workflow.
672-
$action->updateWorkflowFields($fields);
673672
$action->invokeWithExtensions('updateWorkflowFields', $fields);
674673
return $fields;
675674
}

src/Extensions/AdvancedWorkflowExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function startworkflow($data, $form, $request)
6262
*
6363
* @param Form $form
6464
*/
65-
public function updateEditForm(Form $form)
65+
protected function updateEditForm(Form $form)
6666
{
6767
Requirements::javascript('symbiote/silverstripe-advancedworkflow:client/dist/js/advancedworkflow.js');
6868
$service = singleton(WorkflowService::class);

src/Extensions/WorkflowEmbargoExpiryExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public function getIsUnPublishScheduled()
547547
* @param Member $member
548548
* @return bool|null
549549
*/
550-
public function canEdit($member)
550+
protected function canEdit($member)
551551
{
552552
if (!Permission::check('EDIT_EMBARGOED_WORKFLOW') && // not given global/override permission to edit
553553
!$this->owner->AllowEmbargoedEditing) { // item flagged as not editable

0 commit comments

Comments
 (0)