Revision 0bd21ebc
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
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
Shopmodul: Anpassungen an neuen Partcontroller; Shopkategorien gehen noch nicht