Commit 63c8ea0 1 parent 9de2476 commit 63c8ea0 Copy full SHA for 63c8ea0
File tree 1 file changed +4
-4
lines changed
packages/framework/src/Console/Commands
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ protected function captureTagFieldInput(PublicationFieldDefinition $field): ?Pub
165
165
166
166
$ this ->tip ('You can enter multiple tags separated by commas ' );
167
167
168
- $ choice = $ this ->reloadableChoice ($ this ->getReloadableTagValuesArrayClosure (),
168
+ $ choice = $ this ->reloadableChoice ($ this ->getReloadableTagValuesArrayClosure ($ tagGroup ),
169
169
'Which tag would you like to use? ' ,
170
170
'Reload tags.json ' ,
171
171
true
@@ -211,10 +211,10 @@ protected function tip(string $message): void
211
211
}
212
212
213
213
/** @return Closure<array<string>> */
214
- protected function getReloadableTagValuesArrayClosure (): Closure
214
+ protected function getReloadableTagValuesArrayClosure (string $ tagGroup ): Closure
215
215
{
216
- return function (): array {
217
- return PublicationService::getValuesForTagName ($ this -> publicationType -> getIdentifier () )->toArray ();
216
+ return function () use ( $ tagGroup ) : array {
217
+ return PublicationService::getValuesForTagName ($ tagGroup )->toArray ();
218
218
};
219
219
}
220
220
}
You can’t perform that action at this time.
0 commit comments