use Clone qw(clone);
use SL::DB::Chart;
use SL::Controller::Helper::GetModels;
-use SL::DB::Helper::Paginated;
use SL::Locale::String qw(t8);
use SL::JSON;
if (!$self->chart) {
# TODO error
} else {
- require Rose::DB::Object::Helpers;
- $chart_hash = $self->chart->as_tree;
- $chart_hash->{displayable_name} = $self->chart->displayable_name;
+ $chart_hash = $self->chart->as_tree;
+ $chart_hash->{displayable_name} = $self->chart->displayable_name;
}
$self->render(\ SL::JSON::to_json($chart_hash), { layout => 0, type => 'json', process => 0 });
if (!$self->part) {
# TODO error
} else {
- require Rose::DB::Object::Helpers;
- $part_hash = $self->part->as_tree;
- $part_hash->{cvars} = $self->part->cvar_as_hashref;
+ $part_hash = $self->part->as_tree;
+ $part_hash->{cvars} = $self->part->cvar_as_hashref;
}
$self->render(\ SL::JSON::to_json($part_hash), { layout => 0, type => 'json', process => 0 });