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
maarchRM
Commits
67496fe5
Verified
Commit
67496fe5
authored
Feb 24, 2020
by
Cyril Vazquez
Browse files
Replace criteria orgId with registrationNumber
parent
3eaaf31e
Pipeline
#6985
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/presentation/maarchRM/Resources/view/lifeCycle/searchForm.html
View file @
67496fe5
...
...
@@ -191,7 +191,7 @@ $('#org').typeahead(
},
{
name
:
'
organizations
'
,
displayKey
:
'
orgId
'
,
displayKey
:
'
registrationNumber
'
,
templates
:
{
empty
:
function
()
{
return
"
<span class='well well-sm'>
"
+
$
(
'
#noOriginatorFound
'
).
html
()
+
"
</span>
"
;
...
...
@@ -201,7 +201,7 @@ $('#org').typeahead(
"
<span>
"
+
"
<span style='font-family:Helvetica, sans-serif;'>
"
;
if
(
organization
.
orgId
)
{
if
(
organization
.
registrationNumber
)
{
display
+=
organization
.
displayName
+
"
</span></span><br>
"
;
}
...
...
@@ -212,7 +212,7 @@ $('#org').typeahead(
organizations
.
search
(
query
,
function
(
suggestions
)
{
var
i
=
suggestions
.
length
while
(
i
--
)
{
if
(
$
(
'
#orgs
'
).
find
(
'
[data-orgid="
'
+
suggestions
[
i
].
orgId
+
'
"]
'
).
length
)
if
(
$
(
'
#orgs
'
).
find
(
'
[data-orgid="
'
+
suggestions
[
i
].
registrationNumber
+
'
"]
'
).
length
)
suggestions
.
splice
(
i
,
1
);
}
cb
(
suggestions
);
...
...
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