View | Details | Raw Unified | Return to bug 14698
Collapse All | Expand All

(-)a/Koha/AtomicUpdater.pm (-6 / +2 lines)
Lines 53-60 sub _get_castable_unique_columns { Link Here
53
53
54
@PARAM1 Scalar, issue_id or atomicupdate_id
54
@PARAM1 Scalar, issue_id or atomicupdate_id
55
@RETURNS Koha::AtomicUpdate
55
@RETURNS Koha::AtomicUpdate
56
@THROWS Koha::Exception::BadParameter, if @PARAM1 is not a scalar
56
@THROWS Koha::Exception::DuplicateObject, if @PARAM1 matches both the issue_id and atomicupdate_id,
57
        Koha::Exception::DuplicateObject, if @PARAM1 matches both the issue_id and atomicupdate_id,
58
                                          you should change your issue naming convention.
57
                                          you should change your issue naming convention.
59
=cut
58
=cut
60
59
Lines 62-70 sub find { Link Here
62
    my ( $self, $id ) = @_;
61
    my ( $self, $id ) = @_;
63
    return unless $id;
62
    return unless $id;
64
    if (ref($id)) {
63
    if (ref($id)) {
65
        my @cc1 = caller(1);
64
        return $self->SUPER::find($id);
66
        my @cc0 = caller(0);
67
        Koha::Exception::BadParameter->throw(error => $cc1[3]."() -> ".$cc0[3]."():> Given \$id '$id' is not a scalar.");
68
    }
65
    }
69
66
70
    my @results = $self->_resultset()->search({'-or' => [
67
    my @results = $self->_resultset()->search({'-or' => [
71
- 

Return to bug 14698