Lines 68-74
else {
Link Here
|
68 |
if ($change) { |
68 |
if ($change) { |
69 |
$schema->resultset('EdifactEan')->find($id)->update( |
69 |
$schema->resultset('EdifactEan')->find($id)->update( |
70 |
{ |
70 |
{ |
71 |
branchcode => scalar $input->param('branchcode'), |
71 |
branchcode => scalar $input->param('branchcode') || undef, |
72 |
description => scalar $input->param('description'), |
72 |
description => scalar $input->param('description'), |
73 |
ean => scalar $input->param('ean'), |
73 |
ean => scalar $input->param('ean'), |
74 |
id_code_qualifier => scalar $input->param('id_code_qualifier'), |
74 |
id_code_qualifier => scalar $input->param('id_code_qualifier'), |
Lines 78-84
else {
Link Here
|
78 |
else { |
78 |
else { |
79 |
my $new_ean = $schema->resultset('EdifactEan')->new( |
79 |
my $new_ean = $schema->resultset('EdifactEan')->new( |
80 |
{ |
80 |
{ |
81 |
branchcode => scalar $input->param('branchcode'), |
81 |
branchcode => scalar $input->param('branchcode') || undef, |
82 |
description => scalar $input->param('description'), |
82 |
description => scalar $input->param('description'), |
83 |
ean => scalar $input->param('ean'), |
83 |
ean => scalar $input->param('ean'), |
84 |
id_code_qualifier => scalar $input->param('id_code_qualifier'), |
84 |
id_code_qualifier => scalar $input->param('id_code_qualifier'), |