fix: ingestreferencecommand
fix label generation for canons of dort content
This commit is contained in:
@@ -144,6 +144,10 @@ class IngestReferenceCommand extends Command
|
||||
$ref->setContent($md);
|
||||
$ref->setName($this->name);
|
||||
$ref->setType($this->type);
|
||||
|
||||
if ($this->type == 'cd') {
|
||||
$label = substr(basename($file), 0, -3);
|
||||
}
|
||||
$ref->setLabel($label);
|
||||
|
||||
$this->io->success("Ingested {$this->name} as {$this->type}:{$label}");
|
||||
|
||||
Reference in New Issue
Block a user