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

(-)a/Koha/Objects.pm (-1 / +2 lines)
Lines 196-202 sub delete { Link Here
196
196
197
=head3 update
197
=head3 update
198
198
199
    $object->update( $fields, [ { no_triggers => 0/1 } ] );
199
    my $objects = Koha::Objects->new; # or Koha::Objects->search
200
    $objects->update( $fields, [ { no_triggers => 0/1 } ] );
200
201
201
This method overloads the DBIC inherited one so if code-level triggers exist
202
This method overloads the DBIC inherited one so if code-level triggers exist
202
(through the use of an overloaded I<update> or I<store> method in the Koha::Object
203
(through the use of an overloaded I<update> or I<store> method in the Koha::Object
(-)a/t/db_dependent/Template/Plugin/Categories.t (-2 / +1 lines)
Lines 65-71 subtest 'can_any_reset_password() tests' => sub { Link Here
65
    $schema->storage->txn_begin;
65
    $schema->storage->txn_begin;
66
66
67
    # Make sure all existing categories have reset_password set to 0
67
    # Make sure all existing categories have reset_password set to 0
68
    Koha::Patron::Categories->update({ reset_password => 0 });
68
    Koha::Patron::Categories->search->update({ reset_password => 0 });
69
69
70
    ok( !Koha::Template::Plugin::Categories->new->can_any_reset_password, 'No category is allowed to reset password' );
70
    ok( !Koha::Template::Plugin::Categories->new->can_any_reset_password, 'No category is allowed to reset password' );
71
71
72
- 

Return to bug 23185