Skip to content
This repository has been archived by the owner on Jun 12, 2021. It is now read-only.

Commit

Permalink
moved the insert for DuplicateAction
Browse files Browse the repository at this point in the history
  • Loading branch information
codivist committed Feb 7, 2012
1 parent 760875a commit ed73c49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/DataObjects/DataObjectAsPage.php
Expand Up @@ -104,6 +104,8 @@ public function getCMSActions()
//Create the Duplicate action
$DuplicateAction = FormAction::create('duplicate', 'Duplicate Object');
$DuplicateAction->describe("Duplicate this item");
//add it to the existing actions
$Actions->insertFirst($DuplicateAction);

if($this->Status != 'Draft')
{
Expand All @@ -114,8 +116,7 @@ public function getCMSActions()
$Actions->insertFirst($unPublishAction);
}

//add it to the existing actions
$Actions->insertFirst($DuplicateAction);


return $Actions;
}
Expand Down

0 comments on commit ed73c49

Please sign in to comment.