__PACKAGE__->run_before('check_part_id', only => [ qw(edit delete) ]);
-__PACKAGE__->run_before('normalize_text_blocks');
-
# actions for editing parts
#
sub action_add_part {
$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"