Skip to content

Commit 44d2796

Browse files
ammoptclaude
andcommitted
Bump version to 2.9.0, add upgrade migration for show_all_attributes
Existing deployments previously showed all patron attribute types. The upgrade step preserves that behaviour by setting quick_add_user_show_all_attributes to 'on' when the key is absent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3ae1e94 commit 44d2796

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Koha/Plugin/Com/PTFSEurope/IllActions.pm

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ use Koha::Patrons;
2121
use Koha::Patron::Attribute::Types;
2222
use Koha::Patron::Categories;
2323

24-
our $VERSION = "2.8.0";
24+
our $VERSION = "2.9.0";
2525

2626
our $metadata = {
2727
name => 'IllActions',
2828
author => 'Open Fifth',
2929
date_authored => '2023-10-30',
30-
date_updated => '2025-04-06',
30+
date_updated => '2026-07-01',
3131
minimum_version => '25.05.00.000',
3232
maximum_version => undef,
3333
version => $VERSION,
@@ -399,6 +399,13 @@ sub upgrade {
399399
my $dt = dt_from_string();
400400
$self->store_data( { last_upgraded => $dt->ymd('-') . ' ' . $dt->hms(':') } );
401401

402+
# Preserve existing behaviour: show all attributes was the previous default
403+
my $config = $self->{config};
404+
unless ( exists $config->{quick_add_user_show_all_attributes} ) {
405+
$config->{quick_add_user_show_all_attributes} = 'on';
406+
$self->store_data( { illactions_config => encode_json($config) } );
407+
}
408+
402409
return 1;
403410
}
404411

0 commit comments

Comments
 (0)