Skip to content
Snippets Groups Projects
Commit 4fac3cfd authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

UPD allow impersonate by full name

Closes #699
parent 2f9cd7e0
No related branches found
No related tags found
No related merge requests found
Pipeline #339335 canceled
......@@ -25,11 +25,28 @@ export default {
return TransactionService.execute(config, [
{
name: 'cntl.mgr.list',
idx: 'login_name',
old: apiutil.denullify_dict({
login_name_regexp: this.checkRegex(term, true),
fetch_limit: 10,
is_sub: false
})
},
{
name: 'cntl.mgr.list',
idx: 'full_name',
old: apiutil.denullify_dict({
full_name_regexp_ic: this.checkRegex(term, false),
fetch_limit: 10,
is_sub: false
})
},
{
name: 'cntl.mgr.list',
union_join_ref: {
login_name: 'self',
full_name: 'self'
}
}
])
},
......
......@@ -617,7 +617,10 @@ token = ${this.visible_results[this.visible_ta_res_index].item[0].token}`
this.searching_mgrs = false
},
serializeMgr(mgr) {
return mgr.login_name
if (mgr.login_name === mgr.first_name) {
return mgr.login_name
}
return mgr.login_name + ' (' + mgr.first_name + ' ' + mgr.last_name + ')'
}
},
created() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment