Browse Source

Bug 20144: [sql_modes] Add default value for subscription_numberpatterns.description in tests

Fix for:
Field 'description' doesn't have a default value

t/db_dependent/AdditionalField.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 4 years ago
parent
commit
ae63d6e271
  1. 1
      C4/Serials/Numberpattern.pm
  2. 1
      t/db_dependent/AdditionalField.t

1
C4/Serials/Numberpattern.pm

@ -139,6 +139,7 @@ sub AddSubscriptionNumberpattern {
return;
}
# FIXME label, description and numberingmethod must be mandatory
my @keys;
my @values;
foreach (qw/ label description numberingmethod displayorder

1
t/db_dependent/AdditionalField.t

@ -125,6 +125,7 @@ my $budget_id = AddBudget({
my $frequency_id = AddSubscriptionFrequency({ description => "Test frequency 1" });
my $pattern_id = AddSubscriptionNumberpattern({
label => 'Test numberpattern 1',
description => 'Description for numberpattern 1',
numberingmethod => '{X}'
});

Loading…
Cancel
Save