Skip to content

Commit 63c8ea0

Browse files
committed
Add reference to the tagGroup so it can be reloaded
1 parent 9de2476 commit 63c8ea0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/framework/src/Console/Commands/MakePublicationCommand.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ protected function captureTagFieldInput(PublicationFieldDefinition $field): ?Pub
165165

166166
$this->tip('You can enter multiple tags separated by commas');
167167

168-
$choice = $this->reloadableChoice($this->getReloadableTagValuesArrayClosure(),
168+
$choice = $this->reloadableChoice($this->getReloadableTagValuesArrayClosure($tagGroup),
169169
'Which tag would you like to use?',
170170
'Reload tags.json',
171171
true
@@ -211,10 +211,10 @@ protected function tip(string $message): void
211211
}
212212

213213
/** @return Closure<array<string>> */
214-
protected function getReloadableTagValuesArrayClosure(): Closure
214+
protected function getReloadableTagValuesArrayClosure(string $tagGroup): Closure
215215
{
216-
return function (): array {
217-
return PublicationService::getValuesForTagName($this->publicationType->getIdentifier())->toArray();
216+
return function () use ($tagGroup): array {
217+
return PublicationService::getValuesForTagName($tagGroup)->toArray();
218218
};
219219
}
220220
}

0 commit comments

Comments
 (0)