From 48148554c5520e89fbff840eee3336f9702a7d5c Mon Sep 17 00:00:00 2001 From: Torsten Oppermann <torsten@sgalinski.de> Date: Wed, 10 Jan 2018 15:25:43 +0100 Subject: [PATCH] [TASK] remove default contact --- Classes/Controller/JoblistController.php | 5 ----- Configuration/TypoScript/Frontend/setup.ts | 1 - README.md | 16 ++-------------- 3 files changed, 2 insertions(+), 20 deletions(-) diff --git a/Classes/Controller/JoblistController.php b/Classes/Controller/JoblistController.php index ccb26853..24312505 100644 --- a/Classes/Controller/JoblistController.php +++ b/Classes/Controller/JoblistController.php @@ -296,11 +296,6 @@ class JoblistController extends ActionController { if ($job !== NULL) { /** @var Contact $contact */ $contact = $job->getContact(); - if ($contact === NULL) { - $contact = $this->contactRepository->findByUid((int) $this->settings['defaultContactId']); - } - } else { - $contact = $this->contactRepository->findByUid((int) $this->settings['defaultContactId']); } if ($contact !== NULL) { diff --git a/Configuration/TypoScript/Frontend/setup.ts b/Configuration/TypoScript/Frontend/setup.ts index 26f79142..96c8aeeb 100644 --- a/Configuration/TypoScript/Frontend/setup.ts +++ b/Configuration/TypoScript/Frontend/setup.ts @@ -24,7 +24,6 @@ plugin.tx_sgjobs { settings { allowedFileExtensions = {$plugin.tx_sgjobs.settings.allowedFileExtensions} allowedMimeTypes = {$plugin.tx_sgjobs.settings.allowedMimeTypes} - defaultContactId = 1 defaultJobId = 28 } diff --git a/README.md b/README.md index fece6cd0..b462a18d 100644 --- a/README.md +++ b/README.md @@ -38,22 +38,10 @@ The Backend module is found in the **WEB** section under the name **Job Offers** You can create a new job offer by clicking on the **New Job Offer** button. -## Defining a default Job (unsoliticed Application) -In your typoscript settings you can set a job id, which will be used for all **unsoliticed Applications**. -If nothing is set, unsolicited applications are not connected to any job offer. - -``` - settings.defaultJobId = 1 -``` - ## Setting the contact email When a user applies to a job offer an email will be send. The adress of this email comes either from the -**contact person** assigned to the job, ot if no contact person is set, you can set a default contact person -in your TypoScript settings: - -``` - settings.defaultContactId = 1 -``` +**contact person** assigned to the job, ot if no contact person is set, the mail address is chosen from the selected +location. Simply supply the uid of the contact record and every job without a contact person will use the desired contact. -- GitLab