Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d3b2be26

Von Kivitendo Admin vor fast 8 Jahren hinzugefügt

  • ID d3b2be265715bdde58118795f2fb870bafa7edd9
  • Vorgänger 69c9d928
  • Nachfolger 2e3bdf1a

Bestehende Erzeugnisse korrekt speichern

siehe Ticket #227

Unterschiede anzeigen:

SL/Controller/Part.pm
964 964
  my ($self) = @_;
965 965

  
966 966
  return 1 unless $::form->{part}{part_type} eq 'assortment';
967
  # skip check for existing parts that have been used
967
  # skip item check for existing assortments that have been used
968 968
  return 1 if ($self->part->id and !$self->part->orphaned);
969 969

  
970 970
  # new or orphaned parts must have items in $::form->{assortment_items}
......
1001 1001

  
1002 1002
  return 1 unless $::form->{part}->{part_type} eq 'assembly';
1003 1003

  
1004
  # skip item check for existing assembly that have been used
1005
  return 1 if ($self->part->id and !$self->part->orphaned);
1006

  
1004 1007
  unless ( $::form->{assembly_items} and scalar @{$::form->{assembly_items}} ) {
1005 1008
    $self->js->run('kivi.Part.set_tab_active_by_name', 'assembly_tab')
1006 1009
             ->focus('#add_assembly_item_name')

Auch abrufbar als: Unified diff