Skip to content
Snippets Groups Projects
Commit 387d3d64 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Limit department select to the language of the job

This commit adds a limit to the language of the job into the department
select field. This way no departments can be selected, that are not the
same language as the job itself. It also adds a sorting to make the
list easier to read.
parent c0092167
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,7 @@ return [
'type' => 'select',
'renderType' => 'selectSingle',
'foreign_table' => 'tx_sgjobs_domain_model_department',
'foreign_table_where' => ' AND (tx_sgjobs_domain_model_department.sys_language_uid=###REC_FIELD_sys_language_uid### OR tx_sgjobs_domain_model_department.sys_language_uid=-1) ORDER BY tx_sgjobs_domain_model_department.sorting ASC',
'minitems' => 1,
'items' => [
[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment