Skip to content
Snippets Groups Projects
Commit cc4809ef authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Fixing some filter bugs, wrong column name, casting int missing

parent f9e60502
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ class JoblistController extends ActionController {
* @throws \InvalidArgumentException
*/
public function indexAction() {
$recordPageId = $this->configurationManager->getConfiguration(
$recordPageId = (int) $this->configurationManager->getConfiguration(
ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK
)['persistence']['storagePid'];
......
......@@ -229,7 +229,7 @@ class FrontendFilterService {
'tx_sgjobs_domain_model_company'
);
$statement = $queryBuilder->select('a.function')
$statement = $queryBuilder->select('a.job_function')
->from('tx_sgjobs_domain_model_job', 'a')
->join(
'a', 'tx_sgjobs_domain_model_company', 'b'
......@@ -274,12 +274,12 @@ class FrontendFilterService {
)
);
$functions = $statement->execute()->fetchAll();
$jobFunctions = $statement->execute()->fetchAll();
$result = [];
$result[0] = '';
foreach ($functions as $function) {
$result[$function['function']] = $function['function'];
foreach ($jobFunctions as $jobFunction) {
$result[$jobFunction['job_function']] = $jobFunction['job_function'];
}
return $result;
......
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