mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
course tags corrected
This commit is contained in:
@@ -55,6 +55,12 @@ class CourseForm extends Component
|
|||||||
->can('update', $this->course)
|
->can('update', $this->course)
|
||||||
) {
|
) {
|
||||||
abort(403);
|
abort(403);
|
||||||
|
} else {
|
||||||
|
$this->selectedTags = $this->course->tags()
|
||||||
|
->where('type', 'course')
|
||||||
|
->get()
|
||||||
|
->map(fn($tag) => $tag->name)
|
||||||
|
->toArray();
|
||||||
}
|
}
|
||||||
if (!$this->fromUrl) {
|
if (!$this->fromUrl) {
|
||||||
$this->fromUrl = url()->previous();
|
$this->fromUrl = url()->previous();
|
||||||
|
|||||||
Reference in New Issue
Block a user