-# get the longdescription for an item if the dialog to enter/change the
-# longdescription was opened and the longdescription is empty
-#
-# If this item is new, get the longdescription from Part.
-# Otherwise get it from OrderItem.
-sub action_get_item_longdescription {
- my $longdescription;
-
- if ($::form->{item_id}) {
- $longdescription = SL::DB::OrderItem->new(id => $::form->{item_id})->load->longdescription;
- } elsif ($::form->{parts_id}) {
- $longdescription = get_part_texts($::form->{parts_id}, $::form->{language_id})->{longdescription};
- }
- $_[0]->render(\ $longdescription, { type => 'text' });
-}
-