Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
don
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
26
Issues
26
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LQDN Adminsys
don
Commits
678e4014
Commit
678e4014
authored
Nov 15, 2018
by
Okhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linting
parent
fb136c4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
app/controller/admin.php
app/controller/admin.php
+14
-7
src/LQDN/Handler/CounterpartHandler.php
src/LQDN/Handler/CounterpartHandler.php
+4
-2
No files found.
app/controller/admin.php
View file @
678e4014
...
...
@@ -100,7 +100,8 @@ class Admin extends Controller
$f3
->
set
(
'block_content'
,
'backend/dons.html'
);
}
public
function
validate
(
$f3
,
$args
)
{
public
function
validate
(
$f3
,
$args
)
{
$id
=
''
;
$error
=
''
;
$db
=
$f3
->
get
(
'DB'
);
...
...
@@ -132,7 +133,8 @@ class Admin extends Controller
}
if
(
$error
!=
''
)
{
}
else
{
$db
->
query
(
"UPDATE dons
$db
->
query
(
"UPDATE dons
SET status =
$status
WHERE id = "
.
\
Utils
::
asl
(
$id
)
);
...
...
@@ -145,7 +147,8 @@ class Admin extends Controller
}
public
function
invalidate
(
$f3
,
$args
)
{
public
function
invalidate
(
$f3
,
$args
)
{
$id
=
''
;
$error
=
''
;
$db
=
$f3
->
get
(
'DB'
);
...
...
@@ -180,7 +183,8 @@ class Admin extends Controller
}
if
(
$error
!=
''
)
{
}
else
{
$db
->
query
(
"UPDATE dons
$db
->
query
(
"UPDATE dons
SET status =
$status
WHERE id = "
.
\
Utils
::
asl
(
$id
)
);
...
...
@@ -703,7 +707,8 @@ class Admin extends Controller
$f3
->
set
(
'block_content'
,
'backend/contrepartie.html'
);
}
public
function
adresse
(
$f3
,
$args
)
{
public
function
adresse
(
$f3
,
$args
)
{
$id
=
''
;
$form_name
=
''
;
$user_id
=
''
;
...
...
@@ -720,7 +725,8 @@ class Admin extends Controller
WHERE user_id =
$user_id
"
);
$db
->
query
(
"UPDATE contreparties SET adresse_id = NULL
WHERE user_id =
$user_id
"
);
$db
->
query
(
"DELETE FROM adresses
$db
->
query
(
"DELETE FROM adresses
WHERE id =
$id
"
);
}
else
{
...
...
@@ -733,7 +739,8 @@ class Admin extends Controller
$codepostal
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.codepostal'
));
$ville
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.ville'
));
$pays
=
\
Utils
::
asl
(
$f3
->
get
(
'POST.pays'
));
$db
->
query
(
"UPDATE adresses SET
$db
->
query
(
"UPDATE adresses SET
nom = '"
.
$nom
.
"',
adresse = '"
.
$adresse
.
"',
adresse2 = '"
.
$adresse2
.
"',
...
...
src/LQDN/Handler/CounterpartHandler.php
View file @
678e4014
...
...
@@ -25,8 +25,10 @@ class CounterpartHandler
public
function
handleCounterpartDeleteCommand
(
CounterpartDeleteCommand
$command
)
{
$counterpartId
=
$command
->
getCounterpartId
();
$this
->
connection
->
executeUpdate
(
"DELETE FROM counterparts WHERE id = :id"
,
[
'id'
=>
$counterpartId
()]);
$this
->
connection
->
executeUpdate
(
"DELETE FROM counterparts WHERE id = :id"
,
[
'id'
=>
$counterpartId
()]
);
}
/**
...
...
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