Lines 107-116
if ($fileID) {
Link Here
|
107 |
if ( defined $srcimage ) { |
107 |
if ( defined $srcimage ) { |
108 |
eval { |
108 |
eval { |
109 |
if ( $replace ) { |
109 |
if ( $replace ) { |
110 |
if ( $biblionumber ) { |
110 |
if ( $itemnumber ) { |
111 |
Koha::Biblios->find($biblionumber)->cover_images->delete; |
|
|
112 |
} elsif ( $itemnumber ) { |
113 |
Koha::Items->find($itemnumber)->cover_images->delete; |
111 |
Koha::Items->find($itemnumber)->cover_images->delete; |
|
|
112 |
} elsif ( $biblionumber ) { |
113 |
Koha::Biblios->find($biblionumber)->cover_images->search({ itemnumber => undef })->delete; |
114 |
} |
114 |
} |
115 |
} |
115 |
} |
116 |
|
116 |
|
117 |
- |
|
|