Revision 09346b1f
Von Werner Hahn vor mehr als 7 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
637 | 637 |
|
638 | 638 |
sub _set_javascript { |
639 | 639 |
my ($self) = @_; |
640 |
$::request->layout->use_javascript("${_}.js") for qw(kivi.Part kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.shop_part kivi.FileUploader);
|
|
640 |
$::request->layout->use_javascript("${_}.js") for qw(kivi.Part kivi.File kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.shop_part);
|
|
641 | 641 |
$::request->layout->add_javascripts_inline("\$(function(){kivi.PriceRule.load_price_rules_for_part(@{[ $self->part->id ]})});") if $self->part->id; |
642 | 642 |
} |
643 | 643 |
|
SL/Controller/ShopPart.pm | ||
---|---|---|
411 | 411 |
if ($::form->{shop_part_id}) { |
412 | 412 |
SL::DB::Manager::ShopPart->find_by(id => $::form->{shop_part_id}); |
413 | 413 |
} else { |
414 |
SL::DB::ShopPart->new(shop_id => $::form->{shop_id}, part_id => $::form->{part_id}); |
|
415 |
#SL::DB::ShopPart->new; |
|
414 |
SL::DB::ShopPart->new(shop_id => $::form->{shop_id}, part_id => $::form->{part_id})->load(with => ['shop']); |
|
416 | 415 |
}; |
417 | 416 |
} |
418 | 417 |
|
Auch abrufbar als: Unified diff
Shopmodul: Anpassungen an neuen Partcontroller; Shopkategorien gehen noch nicht