Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
4a7956a5
Commit
4a7956a5
authored
Feb 04, 2019
by
Okhin
Browse files
Utilisation d'un OUTER JOIN et matching de l'adresse par le user_id
parent
ca56edcc
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
4a7956a5
...
...
@@ -563,8 +563,8 @@ class Admin extends Controller
a.ville as ville,
a.pays as pays
FROM contreparties c
INN
ER JOIN users u ON c.user_id = u.id
INN
ER JOIN adresses a ON
c.adresse_
id = a.id
LEFT OUT
ER JOIN users u ON c.user_id = u.id
LEFT OUT
ER JOIN adresses a ON
u.
id = a.
user_
id
WHERE 1=1 "
;
if
(
$texte
)
{
$query
.
=
" AND (c.id like '%"
.
$texte
.
"%'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment