Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0bd21ebc

Von Werner Hahn vor mehr als 6 Jahren hinzugefügt

  • ID 0bd21ebc3fac12d225f7be89aa300a60c077b7a7
  • Vorgänger ad3ca751
  • Nachfolger f5f6c082

Shopmodul: Anpassungen an neuen Partcontroller; Shopkategorien gehen noch nicht

Unterschiede anzeigen:

SL/Controller/Part.pm
636 636

  
637 637
sub _set_javascript {
638 638
  my ($self) = @_;
639
  $::request->layout->use_javascript("${_}.js")  for qw(kivi.Part kivi.File kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery);
639
  $::request->layout->use_javascript("${_}.js")  for qw(kivi.Part kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.shop_part);
640 640
  $::request->layout->add_javascripts_inline("\$(function(){kivi.PriceRule.load_price_rules_for_part(@{[ $self->part->id ]})});") if $self->part->id;
641 641
}
642 642

  
......
803 803
  # used by edit, save, delete and add
804 804

  
805 805
  if ( $::form->{part}{id} ) {
806
    return SL::DB::Part->new(id => $::form->{part}{id})->load(with => [ qw(makemodels prices translations partsgroup) ]);
806
    return SL::DB::Part->new(id => $::form->{part}{id})->load(with => [ qw(makemodels prices translations partsgroup shop_parts shop_parts.shop) ]);
807 807
  } else {
808 808
    die "part_type missing" unless $::form->{part}{part_type};
809 809
    return SL::DB::Part->new(part_type => $::form->{part}{part_type});

Auch abrufbar als: Unified diff