Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
f738b820
Commit
f738b820
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Fixing implementation
parent
b753f775
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Classes/Controller/JoblistController.php
+9
-9
9 additions, 9 deletions
Classes/Controller/JoblistController.php
Configuration/TypoScript/Frontend/setup.ts
+1
-1
1 addition, 1 deletion
Configuration/TypoScript/Frontend/setup.ts
README.md
+1
-1
1 addition, 1 deletion
README.md
with
11 additions
and
11 deletions
Classes/Controller/JoblistController.php
+
9
−
9
View file @
f738b820
...
...
@@ -150,13 +150,6 @@ class JoblistController extends ActionController {
$this
->
view
->
assign
(
'job'
,
$jobData
);
}
// look for a configured default job, in case of unsolicited application
if
(
$jobData
===
NULL
&&
$this
->
settings
[
'defaultJobId'
])
{
/** @var Job $unsoliticedJob */
$unsoliticedJob
=
$this
->
jobRepository
->
findByUid
(
$this
->
settings
[
'defaultJobId'
]);
$this
->
view
->
assign
(
'job'
,
$unsoliticedJob
);
}
// display country options
$countryRepository
=
$this
->
objectManager
->
get
(
CountryRepository
::
class
);
$countries
=
$countryRepository
->
findAllOrderedBy
(
'shortNameEn'
)
->
toArray
();
...
...
@@ -250,6 +243,15 @@ class JoblistController extends ActionController {
try
{
$applyData
->
setPid
(
$GLOBALS
[
'TSFE'
]
->
id
);
/** @var Job $job */
$job
=
$applyData
->
getJob
();
// look for a configured default job, in case of unsolicited application
if
(
$job
===
NULL
&&
$this
->
settings
[
'defaultJobId'
])
{
$unsoliticedJob
=
$this
->
settings
[
'defaultJobId'
];
$applyData
->
setJobId
(
$unsoliticedJob
);
}
if
(
$applyData
->
_isNew
())
{
$this
->
jobApplicationRepository
->
add
(
$applyData
);
}
else
{
...
...
@@ -266,8 +268,6 @@ class JoblistController extends ActionController {
);
// get email from the job contact, fallback is TS settings
/** @var Job $job */
$job
=
$applyData
->
getJob
();
if
(
$job
!==
NULL
)
{
/** @var Contact $contact */
...
...
This diff is collapsed.
Click to expand it.
Configuration/TypoScript/Frontend/setup.ts
+
1
−
1
View file @
f738b820
...
...
@@ -25,7 +25,7 @@ plugin.tx_sgjobs {
allowedFileExtensions
=
{
$plugin
.
tx_sgjobs
.
settings
.
allowedFileExtensions
}
allowedMimeTypes
=
{
$plugin
.
tx_sgjobs
.
settings
.
allowedMimeTypes
}
defaultContactId
=
1
defaultJobId
=
defaultJobId
=
28
}
features
{
...
...
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
f738b820
...
...
@@ -39,7 +39,7 @@ 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
offer
, which will be used for all
**unsoliticed Applications**
.
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.
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment