Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
ls.ext
Commits
6e8e2e46
Commit
6e8e2e46
authored
Sep 14, 2018
by
Petter Goksøyr Åsen
Browse files
patron-client: fix bug affecting realia with more than one items
parent
adbf677a
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
redef/patron-client/src/frontend/utils/libraryFilters.js
View file @
6e8e2e46
...
...
@@ -12,8 +12,8 @@ export function filterPickupLibrariesByItems (libraries, items) {
const
res
=
{}
const
itemBranches
=
[]
items
.
forEach
(
i
=>
{
itemBranches
.
push
(
i
.
branchcode
)
})
if
(
itemBranches
in
libraries
)
{
res
[
itemB
ranch
es
]
=
libraries
[
itemB
ranch
es
]
}
itemBranches
.
forEach
(
branch
=>
{
res
[
b
ranch
]
=
libraries
[
b
ranch
]
}
)
return
res
}
Write
Preview
Markdown
is supported
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