X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/846482823a97eb26eb164cff77fce3d6ea0deedc..90a1b6fad6aeeab84fc96d6511fdf42fff315df5:/SL/Controller/Part.pm?ds=inline diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 31c670abb..e427cab4a 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -42,8 +42,6 @@ __PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') }, __PACKAGE__->run_before('check_part_id', only => [ qw(edit delete) ]); -__PACKAGE__->run_before('normalize_text_blocks'); - # actions for editing parts # sub action_add_part { @@ -735,6 +733,8 @@ sub parse_form { $self->part->assign_attributes(%{ $params}); $self->part->bin_id(undef) unless $self->part->warehouse_id; + $self->normalize_text_blocks; + # Only reset items ([]) and rewrite from form if $::form->{assortment_items} isn't empty. This # will be the case for used assortments when saving, or when a used assortment # is "used as new"