Bug 33354: Add error if related user open but user is missing

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Pedro Amorim 2023-03-29 15:09:37 +00:00 committed by Tomas Cohen Arazi
parent 823fa8517d
commit 816b1a3e3f
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 18 additions and 0 deletions

View File

@ -318,6 +318,15 @@ export default {
)
)
}
agreement.user_roles.forEach((user, i) => {
if (user.patron_str === "") {
errors.push(
this.$__("Agreement user %s is missing a user").format(
i + 1
)
)
}
})
errors.forEach(function (e) {
setWarning(e)
})

View File

@ -224,6 +224,15 @@ export default {
)
)
}
license.user_roles.forEach((user, i) => {
if (user.patron_str === "") {
errors.push(
this.$__("License user %s is missing a user").format(
i + 1
)
)
}
})
errors.forEach(function (e) {
setWarning(e)
})