Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 41ad0d00

Von Werner Hahn vor mehr als 7 Jahren hinzugefügt

  • ID 41ad0d003a7fe27cf500b273add88d4493173b46
  • Vorgänger 5c5cbf9a
  • Nachfolger 65de8c94

Shopmodul: Anpassungen an neuen Partcontroller; Shopkategorien gehen noch nicht

Unterschiede anzeigen:

SL/Controller/Part.pm
644 644

  
645 645
sub _set_javascript {
646 646
  my ($self) = @_;
647
  $::request->layout->use_javascript("${_}.js")  for qw(kivi.Part kivi.File kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery);
647
  $::request->layout->use_javascript("${_}.js")  for qw(kivi.Part kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.shop_part);
648 648
  $::request->layout->add_javascripts_inline("\$(function(){kivi.PriceRule.load_price_rules_for_part(@{[ $self->part->id ]})});") if $self->part->id;
649 649
}
650 650

  
......
811 811
  # used by edit, save, delete and add
812 812

  
813 813
  if ( $::form->{part}{id} ) {
814
    return SL::DB::Part->new(id => $::form->{part}{id})->load(with => [ qw(makemodels prices translations partsgroup) ]);
814
    return SL::DB::Part->new(id => $::form->{part}{id})->load(with => [ qw(makemodels prices translations partsgroup shop_parts shop_parts.shop) ]);
815 815
  } else {
816 816
    die "part_type missing" unless $::form->{part}{part_type};
817 817
    return SL::DB::Part->new(part_type => $::form->{part}{part_type});

Auch abrufbar als: Unified diff