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
8719e485
Commit
8719e485
authored
Sep 09, 2021
by
Quentin Ribac
Browse files
FIX #18154 TIME 0:15 fixed contact import with civility
parent
81869255
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/contact/controllers/ContactCivilityController.php
View file @
8719e485
...
...
@@ -143,12 +143,17 @@ class ContactCivilityController
ValidatorModel
::
notEmpty
(
$args
,
[
'label'
]);
ValidatorModel
::
stringType
(
$args
,
[
'label'
]);
$civility
=
ContactCivilityModel
::
get
([
'select'
=>
[
'id'
],
'where'
=>
[
'label = ?'
],
'data'
=>
[
$args
[
'label'
]],
'limit'
=>
1
]);
$civility
=
ContactCivilityModel
::
get
([
'select'
=>
[
'id'
],
'where'
=>
[
'label ilike ?'
],
'data'
=>
[
$args
[
'label'
]],
'limit'
=>
1
]);
if
(
empty
(
$civility
))
{
return
''
;
}
return
$civility
[
'id'
];
return
$civility
[
0
][
'id'
];
}
}
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