Skip to content

Commit

Permalink
Fix(SlaLevel): prevent 'clone' action
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebuzz authored and trasher committed Sep 6, 2024
1 parent 5cd323a commit f40adcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/LevelAgreementLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,6 @@ public static function getSpecificValueToSelect($field, $name = '', $values = ''
return parent::getSpecificValueToSelect($field, $name, $values, $options);
}




public function getActions()
{

Expand Down
8 changes: 8 additions & 0 deletions src/SlaLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ public function showForParent(SLA $sla)
}


public function getForbiddenStandardMassiveAction()
{
$forbidden = parent::getForbiddenStandardMassiveAction();
$forbidden[] = 'clone';
return $forbidden;
}


/**
* @param $sla SLA object
*
Expand Down

0 comments on commit f40adcd

Please sign in to comment.