Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Location filter stays empty #168

Open
SicorDev opened this issue Feb 27, 2025 · 0 comments
Open

Location filter stays empty #168

SicorDev opened this issue Feb 27, 2025 · 0 comments

Comments

@SicorDev
Copy link

Hello,

there's an error in the location logic in Version 3.0.6

When using the plugin with a category set, the location repository tries finding locations matching those categories.

Now, tx_jobapplications_domain_model_location actually has the 'categories' field in the DB, but it isn't available in the backend.
Since the location repository will search against this field, the location search always has zero results and the location filter gets disabled in the frontend.

Actually it doesn't even make any sense. Why would one want to tie locations to categories? If you want the location filter to be dynamic like a fasset, it should be built using the locations that are bound to the result postings, just by going over them in a loop after the search in the controler.

For the time being I just shortened the findAll method in the location repository to:

$query = $this->createQuery();
$query->setOrderings([$orderBy => $order]);
return $query->execute();

At least that displays all locations for now.

Hope this helps,
Manuel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant