Commit d3538ae7 authored by Pavel Mashliakovskiy's avatar Pavel Mashliakovskiy 🤹🏻

getSupervisorID fixed for case supervisor role is not defined

parent 62c1c3ae
Pipeline #21842 skipped with stage
......@@ -13,7 +13,7 @@ function getSupervisorID () {
if (__supervisorUserID === 0) {
const supervisorUserName = ubs_settings.loadKey('UBA.securityDashboard.supervisorUser')
if (supervisorUserName) {
__supervisorUserID = UB.Repository('uba_user').attrs('ID').where('name', '=', supervisorUserName).selectAsObject()[0].ID
__supervisorUserID = UB.Repository('uba_user').attrs('ID').where('name', '=', supervisorUserName).selectScalar()
}
}
return __supervisorUserID
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment