Bug 29182: (follow-up) Simplify Koha::ArticleRequest->store
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
707e68b7fc
commit
c9285e1072
|
|
@ -200,12 +200,12 @@ will have notifications sent.
|
|||
|
||||
sub store {
|
||||
my ($self) = @_;
|
||||
if ( $self->in_storage ) {
|
||||
return $self->SUPER::store;
|
||||
} else {
|
||||
|
||||
if ( !$self->in_storage ) {
|
||||
$self->created_on( dt_from_string() );
|
||||
return $self->SUPER::store;
|
||||
}
|
||||
|
||||
return $self->SUPER::store;
|
||||
}
|
||||
|
||||
=head2 Internal methods
|
||||
|
|
|
|||
Loading…
Reference in New Issue