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:
parent
823fa8517d
commit
816b1a3e3f
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue