projects
/
koha_ffzg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 16330: (QA follow-up) Repect guidelines on plurals Patron > Patrons
[koha_ffzg]
/
Koha
/
Rating.pm
diff --git
a/Koha/Rating.pm
b/Koha/Rating.pm
index
1bdeb69
..
94186d0
100644
(file)
--- a/
Koha/Rating.pm
+++ b/
Koha/Rating.pm
@@
-33,6
+33,21
@@
Koha::Rating - Koha Rating Object class
=cut
+=head3 store
+
+=cut
+
+sub store {
+ my ($self) = @_;
+ if ( $self->rating_value > 5 ) {
+ $self->rating_value(5);
+ }
+ elsif ( $self->rating_value < 0 ) {
+ $self->rating_value(0);
+ }
+ return $self->SUPER::store;
+}
+
=head3 type
=cut