This website works better with JavaScript.
Home
Explore
Register
Sign In
Fincer
/
java-bookstore
mirror of
https://github.com/Fincer/java-bookstore
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
4
Wiki
Activity
Browse Source
BasePathAwareController: expect only a single category
Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius
4 years ago
parent
7fc8dd678d
commit
62715cce8a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java
+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java
View File
@ -88,7 +88,7 @@ public class BookBasePathAwareController {
if
(
categoryName
!
=
null
)
{
book
.
setCategory
(
categoryRepository
.
findByNameIgnoreCaseContaining
(
categoryName
)
.
get
(
0
)
categoryRepository
.
findByNameIgnoreCaseContaining
(
categoryName
)
)
;
}
}
Write
Preview
Loading…
Cancel
Save