Revision 596

Date:
2016/10/18 21:40:53
Author:
ahitrov
Revision Log:
get_image/get_data functions now don't recode fields that are already structures.

Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/core/lib/Contenido/Object.pm

     
    390 390 my $self = shift;
    391 391 my $attr = shift;
    392 392 my $encode = shift;
    393 my $data = $self->keeper->serialize_with eq 'json' ? ( $encode ? Data::Recursive::Encode->encode_utf8(eval_json(\$self->{$attr})) : eval_json(\$self->{$attr}) ) : eval_dump(\$self->{$attr});
    394 return ($data || {});
    393 if ( ref $self->$attr ) {
    394 return $self->$attr;
    395 } else {
    396 my $data = $self->keeper->serialize_with eq 'json' ? ( $encode ? Data::Recursive::Encode->encode_utf8(eval_json(\$self->{$attr})) : eval_json(\$self->{$attr}) ) : eval_dump(\$self->{$attr});
    397 return ($data || {});
    398 }
    395 399 }
    396 400
    397 401 # ----------------------------------------------------------------------------