Fix: Properly toggle assignment bookmark
This commit is contained in:
@@ -106,7 +106,7 @@ class Teamer implements TimestampableEntityInterface
|
|||||||
#[ORM\ManyToMany(targetEntity: JobProfile::class, orphanRemoval: true)]
|
#[ORM\ManyToMany(targetEntity: JobProfile::class, orphanRemoval: true)]
|
||||||
private Collection $jobProfiles;
|
private Collection $jobProfiles;
|
||||||
|
|
||||||
#[ORM\ManyToMany(targetEntity: Assignment::class, inversedBy: 'teamers', orphanRemoval: true)]
|
#[ORM\ManyToMany(targetEntity: Assignment::class, inversedBy: 'teamers')]
|
||||||
private Collection $bookmarks;
|
private Collection $bookmarks;
|
||||||
|
|
||||||
#[ORM\OneToMany(mappedBy: 'teamer', targetEntity: Application::class, cascade: ['remove'])]
|
#[ORM\OneToMany(mappedBy: 'teamer', targetEntity: Application::class, cascade: ['remove'])]
|
||||||
|
|||||||
@@ -43,11 +43,9 @@
|
|||||||
Hier bewerben!
|
Hier bewerben!
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not isBookmarked %}
|
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}" class="underline">
|
||||||
<a href="{{ path('app_teamer_bookmark_toggle', { 'uuid': assignment.uuid, 'r': return_url() }) }}" class="underline">
|
{% if not isBookmarked %}auf die Merkliste setzen{% else %}von der Merkliste löschen{% endif %}
|
||||||
auf die Merkliste setzen
|
</a>
|
||||||
</a>
|
|
||||||
{% endif %}
|
|
||||||
<a href="{{ returnUrl }}" class="underline">
|
<a href="{{ returnUrl }}" class="underline">
|
||||||
zurück
|
zurück
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user