Revision 65b2387a
Von Moritz Bunkus vor mehr als 5 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
11 | 11 |
use SL::Webdav; |
12 | 12 |
use SL::File; |
13 | 13 |
use SL::Util qw(trim); |
14 |
use SL::YAML; |
|
14 | 15 |
use SL::DB::Order; |
15 | 16 |
use SL::DB::Default; |
16 | 17 |
use SL::DB::Unit; |
... | ... | |
552 | 553 |
email_body => $::form->{email_body}, |
553 | 554 |
}; |
554 | 555 |
|
555 |
my $periodic_invoices_config = YAML::Dump($config); |
|
556 |
my $periodic_invoices_config = SL::YAML::Dump($config);
|
|
556 | 557 |
|
557 | 558 |
my $status = $self->get_periodic_invoices_status($config); |
558 | 559 |
|
... | ... | |
1232 | 1233 |
|
1233 | 1234 |
$order->assign_attributes(%{$::form->{order}}); |
1234 | 1235 |
|
1235 |
if (my $periodic_invoices_config_attrs = $form_periodic_invoices_config ? YAML::Load($form_periodic_invoices_config) : undef) { |
|
1236 |
if (my $periodic_invoices_config_attrs = $form_periodic_invoices_config ? SL::YAML::Load($form_periodic_invoices_config) : undef) {
|
|
1236 | 1237 |
my $periodic_invoices_config = $order->periodic_invoices_config || $order->periodic_invoices_config(SL::DB::PeriodicInvoicesConfig->new); |
1237 | 1238 |
$periodic_invoices_config->assign_attributes(%$periodic_invoices_config_attrs); |
1238 | 1239 |
} |
... | ... | |
1765 | 1766 |
my ($yaml_config) = @_; |
1766 | 1767 |
|
1767 | 1768 |
return if !$yaml_config; |
1768 |
my $attr = YAML::Load($yaml_config); |
|
1769 |
my $attr = SL::YAML::Load($yaml_config);
|
|
1769 | 1770 |
return if 'HASH' ne ref $attr; |
1770 | 1771 |
return SL::DB::PeriodicInvoicesConfig->new(%$attr); |
1771 | 1772 |
} |
Auch abrufbar als: Unified diff
Module: gebundletes YAML durch dünnen Wrapper über YAML::XS & YAML ersetzt