Revision 574
- Date:
- 2016/05/13 15:06:57
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/comps/contenido/components/set_properties.msn
42 42 $IMAGE = ref $IMAGE ? $IMAGE : {}; 43 43 $IMAGE = $m->comp('/contenido/components/set_image.msn', default=>$IMAGE, field=>$name, SETS=>$SETS, object=>$object, prop => $prop); 44 44 if ( exists $IMAGE->{filename} ) { 45 $object->$name( $object->_serialize($IMAGE) ); 45 $object->$name( $IMAGE ); 46 46 } 47 47 } 48 48 … … 92 92 $maxnumber = $_ if exists $IMAGES->{"image_$_"} && $_ > $maxnumber; 93 93 } 94 94 $IMAGES->{maxnumber} = $maxnumber; 95 $object->$name( $object->_serialize($IMAGES) ); 95 $object->$name( $IMAGES ); 96 96 } 97 97 98 98 } elsif ( $prop->{type} eq 'multimedia' ) { … … 114 114 $MULTI = $m->comp('/contenido/components/set_multi.msn', default=>$MULTI, field=>$name, SETS=>$SETS, object=>$object); 115 115 if (exists($MULTI->{filename})) 116 116 { 117 $object->$name ( $object->_serialize($MULTI) ); 117 $object->$name ( $MULTI ); 118 118 } 119 119 } 120 120 … … 133 133 $MULTI = $m->comp('/contenido/components/set_multimedia_new.msn', default=>$MULTI, field=>$name, SETS=>$SETS, object=>$object, prop => $prop); 134 134 if (exists($MULTI->{filename})) 135 135 { 136 $object->$name( $object->_serialize($MULTI) ); 136 $object->$name( $MULTI ); 137 137 } 138 138 } 139 139 … … 183 183 $maxnumber = $_ if exists $FILES->{"file_$_"} && $_ > $maxnumber; 184 184 } 185 185 $FILES->{maxnumber} = $maxnumber; 186 $object->$name( $object->_serialize($FILES) ); 186 $object->$name( $FILES ); 187 187 } 188 188 189 189 } elsif ( $prop->{type} eq 'audio' ) { … … 209 209 $MULTI = $m->comp('/contenido/components/set_audio.msn', default=>$MULTI, field=>$name, SETS=>$SETS, object=>$object, prop => $prop); 210 210 if (exists($MULTI->{filename})) 211 211 { 212 $object->$name( $object->_serialize($MULTI) ); 212 $object->$name( $MULTI ); 213 213 } 214 214 } 215 215