Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
94574500
Commit
94574500
authored
Jun 01, 2017
by
Χάρης Παπαδόπουλος
Browse files
last school not found now passes through. fixed epal.routing
parent
15c279c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
drupal/modules/epal/epal.routing.yml
View file @
94574500
...
...
@@ -268,6 +268,8 @@ epal.findcapacityperschool:
_auth
:
[
'
basic_auth'
]
defaults
:
_controller
:
'
\Drupal\epal\Controller\DirectorView::FindCapacityPerSchool'
requirements
:
_user_is_logged_in
:
'
TRUE'
epal.applicant.creationpdf
:
path
:
'
/epal/pdf-application'
options
:
...
...
drupal/modules/epal/src/Controller/ApplicationSubmit.php
View file @
94574500
...
...
@@ -118,13 +118,17 @@ class ApplicationSubmit extends ControllerBase {
if
((
int
)
date
(
"Y"
)
===
$lastSchoolYear
&&
(
int
)
$student
[
'lastschool_unittypeid'
]
===
5
)
{
$epalSchools
=
$this
->
entityTypeManager
->
getStorage
(
'eepal_school'
)
->
loadByProperties
(
array
(
'registry_no'
=>
$lastSchoolRegistryNumber
));
$epalSchool
=
reset
(
$epalSchools
);
if
(
!
$epalSchool
){
/*
if (!$epalSchool){
return $this->respondWithStatus([
"error_code" => 4004
], Response::HTTP_FORBIDDEN);
}
else
{
} else { */
if
(
$epalSchool
)
{
$student
[
'currentepal'
]
=
$epalSchool
->
id
();
}
else
{
$student
[
'currentepal'
]
=
0
;
}
}
else
{
$student
[
'currentepal'
]
=
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment