Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
bf36054c
Verified
Commit
bf36054c
authored
May 07, 2021
by
Florian Azizian
Browse files
FIX
#512
TIME 0:30 Disable all user basket redirections before set absence config
parent
6ad51809
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/user/controllers/UserController.php
View file @
bf36054c
...
@@ -2195,6 +2195,10 @@ class UserController
...
@@ -2195,6 +2195,10 @@ class UserController
$today
=
new
\
DateTime
();
$today
=
new
\
DateTime
();
if
(
$today
>
$absenceStartDate
)
{
if
(
$today
>
$absenceStartDate
)
{
UserModel
::
update
([
'set'
=>
[
'status'
=>
'ABS'
],
'where'
=>
[
'id = ?'
],
'data'
=>
[
$absentUser
[
'id'
]]]);
UserModel
::
update
([
'set'
=>
[
'status'
=>
'ABS'
],
'where'
=>
[
'id = ?'
],
'data'
=>
[
$absentUser
[
'id'
]]]);
RedirectBasketModel
::
delete
([
'where'
=>
[
'owner_user_id = ?'
],
'data'
=>
[
$absentUser
[
'id'
]]
]);
if
(
!
empty
(
$absentUser
[
'absence'
][
'redirectedBaskets'
]))
{
if
(
!
empty
(
$absentUser
[
'absence'
][
'redirectedBaskets'
]))
{
UserController
::
redirectBasket
([
UserController
::
redirectBasket
([
...
...
Write
Preview
Supports
Markdown
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