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

[TASK] remove default contact

parent 2525eb2a
No related branches found
No related tags found
1 merge request!3Version 1 5
...@@ -296,11 +296,6 @@ class JoblistController extends ActionController { ...@@ -296,11 +296,6 @@ class JoblistController extends ActionController {
if ($job !== NULL) { if ($job !== NULL) {
/** @var Contact $contact */ /** @var Contact $contact */
$contact = $job->getContact(); $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) { if ($contact !== NULL) {
......
...@@ -24,7 +24,6 @@ plugin.tx_sgjobs { ...@@ -24,7 +24,6 @@ plugin.tx_sgjobs {
settings { settings {
allowedFileExtensions = {$plugin.tx_sgjobs.settings.allowedFileExtensions} allowedFileExtensions = {$plugin.tx_sgjobs.settings.allowedFileExtensions}
allowedMimeTypes = {$plugin.tx_sgjobs.settings.allowedMimeTypes} allowedMimeTypes = {$plugin.tx_sgjobs.settings.allowedMimeTypes}
defaultContactId = 1
defaultJobId = 28 defaultJobId = 28
} }
......
...@@ -38,22 +38,10 @@ The Backend module is found in the **WEB** section under the name **Job Offers** ...@@ -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. 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 ## 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 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 **contact person** assigned to the job, ot if no contact person is set, the mail address is chosen from the selected
in your TypoScript settings: location.
```
settings.defaultContactId = 1
```
Simply supply the uid of the contact record and every job without a contact person will use the desired contact. Simply supply the uid of the contact record and every job without a contact person will use the desired contact.
......
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