Skip to content

Commit c9910d8

Browse files
committed
Show all generic tasks as used as they are exposed
1 parent 196095e commit c9910d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webapp/src/Entity/Executable.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Executable
3131
private ?string $description = null;
3232

3333
#[ORM\Column(length: 32, options: ['comment' => 'Type of executable'])]
34-
#[Assert\Choice(['compare', 'compile', 'debug', 'run'])]
34+
#[Assert\Choice(['compare', 'compile', 'debug', 'run', 'generic_task'])]
3535
private string $type;
3636

3737
#[ORM\OneToOne(targetEntity: ImmutableExecutable::class)]
@@ -187,6 +187,9 @@ public function getZipfileContent(string $tempdir): string
187187
*/
188188
public function checkUsed(array $configScripts): bool
189189
{
190+
if ($this->getType() === 'generic_task') {
191+
return true;
192+
}
190193
if (in_array($this->execid, $configScripts, true)) {
191194
return true;
192195
}

0 commit comments

Comments
 (0)