mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 02:53:50 +00:00
Add label to workflow listing and history to indicate whether it's on hold
This commit is contained in:
@@ -480,4 +480,9 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
|
||||
|
||||
return $this->steps->get($this->steps->count() - 2);
|
||||
}
|
||||
|
||||
public function isOnHoldAtCurrentStep(): bool
|
||||
{
|
||||
return $this->getCurrentStep()->getHoldsOnStep()->count() > 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user