@@ -, +, @@ --- Koha/Library/Group.pm | 8 +++++--- installer/data/mysql/updatedatabase.pl | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) --- a/Koha/Library/Group.pm +++ a/Koha/Library/Group.pm @@ -33,7 +33,7 @@ Koha::Library::Group - Koha Library::Group object class =head1 API -=head2 Class Methods +=head2 Class methods =cut @@ -119,7 +119,7 @@ sub libraries { =head3 all_libraries -my @libraries = $group->libraries( { [invert => 1] } ); +my @libraries = $group->all_libraries( { [invert => 1] } ); Returns the libraries set as children of this group or any subgroup. @@ -174,7 +174,9 @@ sub store { return $self->SUPER::store(@_); } -=head3 type +=head2 Internal methods + +=head3 _type =cut --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -15179,7 +15179,6 @@ if( CheckVersion( $DBversion ) ) { $DBversion = "XXX"; if ( CheckVersion($DBversion) ) { - require Koha::Library::Group; $dbh->do(q{ INSERT INTO library_groups ( title, description, created_on ) VALUES ( '__SEARCH_GROUPS__', 'Library search groups - Staff only', NOW() ) @@ -15223,7 +15222,7 @@ if ( CheckVersion($DBversion) ) { # $dbh->do("DROP TABLE branchrelations"); # $dbh->do("DROP TABLE branchcategories"); - print "Upgrade to $DBversion done (Bug 16735 - Replace existing library search groups functionality with the new hierarchical groups system)\n"; + print "Upgrade to $DBversion done (Bug 16735 - Migrate library search groups into the new hierarchical groups)\n"; SetVersion($DBversion); } --