Lines 53-62
if ( $op eq 'add_form' ) {
Link Here
|
53 |
my $frameworkcode = $input->param('frameworkcode'); |
53 |
my $frameworkcode = $input->param('frameworkcode'); |
54 |
my $frameworktext = $input->param('frameworktext'); |
54 |
my $frameworktext = $input->param('frameworktext'); |
55 |
my $is_a_modif = $input->param('is_a_modif'); |
55 |
my $is_a_modif = $input->param('is_a_modif'); |
|
|
56 |
my $is_fast_add = $input->param('is_fast_add') || 0; |
56 |
|
57 |
|
57 |
if ($is_a_modif) { |
58 |
if ($is_a_modif) { |
58 |
my $framework = Koha::BiblioFrameworks->find($frameworkcode); |
59 |
my $framework = Koha::BiblioFrameworks->find($frameworkcode); |
59 |
$framework->frameworktext($frameworktext); |
60 |
$framework->frameworktext($frameworktext); |
|
|
61 |
$framework->is_fast_add($is_fast_add); |
60 |
eval { $framework->store; }; |
62 |
eval { $framework->store; }; |
61 |
if ($@) { |
63 |
if ($@) { |
62 |
push @messages, { type => 'error', code => 'error_on_update' }; |
64 |
push @messages, { type => 'error', code => 'error_on_update' }; |
Lines 67-72
if ( $op eq 'add_form' ) {
Link Here
|
67 |
my $framework = Koha::BiblioFramework->new( |
69 |
my $framework = Koha::BiblioFramework->new( |
68 |
{ frameworkcode => $frameworkcode, |
70 |
{ frameworkcode => $frameworkcode, |
69 |
frameworktext => $frameworktext, |
71 |
frameworktext => $frameworktext, |
|
|
72 |
is_fast_add => $is_fast_add, |
70 |
} |
73 |
} |
71 |
); |
74 |
); |
72 |
eval { $framework->store; }; |
75 |
eval { $framework->store; }; |