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

(-)a/Koha/Library/Group.pm (-3 / +5 lines)
Lines 33-39 Koha::Library::Group - Koha Library::Group object class Link Here
33
33
34
=head1 API
34
=head1 API
35
35
36
=head2 Class Methods
36
=head2 Class methods
37
37
38
=cut
38
=cut
39
39
Lines 119-125 sub libraries { Link Here
119
119
120
=head3 all_libraries
120
=head3 all_libraries
121
121
122
my @libraries = $group->libraries( { [invert => 1] } );
122
my @libraries = $group->all_libraries( { [invert => 1] } );
123
123
124
Returns the libraries set as children of this group or any subgroup.
124
Returns the libraries set as children of this group or any subgroup.
125
125
Lines 174-180 sub store { Link Here
174
    return $self->SUPER::store(@_);
174
    return $self->SUPER::store(@_);
175
}
175
}
176
176
177
=head3 type
177
=head2 Internal methods
178
179
=head3 _type
178
180
179
=cut
181
=cut
180
182
(-)a/installer/data/mysql/updatedatabase.pl (-3 / +1 lines)
Lines 15179-15185 if( CheckVersion( $DBversion ) ) { Link Here
15179
15179
15180
$DBversion = "XXX";
15180
$DBversion = "XXX";
15181
if ( CheckVersion($DBversion) ) {
15181
if ( CheckVersion($DBversion) ) {
15182
    require Koha::Library::Group;
15183
15182
15184
    $dbh->do(q{
15183
    $dbh->do(q{
15185
        INSERT INTO library_groups ( title, description, created_on ) VALUES ( '__SEARCH_GROUPS__', 'Library search groups - Staff only', NOW() )
15184
        INSERT INTO library_groups ( title, description, created_on ) VALUES ( '__SEARCH_GROUPS__', 'Library search groups - Staff only', NOW() )
Lines 15223-15229 if ( CheckVersion($DBversion) ) { Link Here
15223
#    $dbh->do("DROP TABLE branchrelations");
15222
#    $dbh->do("DROP TABLE branchrelations");
15224
#    $dbh->do("DROP TABLE branchcategories");
15223
#    $dbh->do("DROP TABLE branchcategories");
15225
15224
15226
    print "Upgrade to $DBversion done (Bug 16735 - Replace existing library search groups functionality with the new hierarchical groups system)\n";
15225
    print "Upgrade to $DBversion done (Bug 16735 - Migrate library search groups into the new hierarchical groups)\n";
15227
    SetVersion($DBversion);
15226
    SetVersion($DBversion);
15228
}
15227
}
15229
15228
15230
- 

Return to bug 16735