Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17217 | Rev 17222 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17217 Rev 17219
Línea 449... Línea 449...
449
                    return $this->createErrorResponse('ERROR_UNAUTHORIZED');
449
                    return $this->createErrorResponse('ERROR_UNAUTHORIZED');
450
                }
450
                }
Línea 451... Línea 451...
451
 
451
 
Línea 452... Línea -...
452
                $dataPost = (array) $form->getData();
-
 
453
                
-
 
454
                $topic->name = $dataPost['name'] ?? $topic->name;
452
                $dataPost = (array) $form->getData();
455
                $topic->description = $dataPost['description'] ?? $topic->description;
-
 
456
                $topic->order = $dataPost['order'] ?? $topic->order;
-
 
457
                $topic->status = $dataPost['status'] ?? $topic->status;        
453
                
458
                $topic->privacy = $dataPost['privacy'] ?? $topic->privacy;
-
 
459
                $topic->type = $dataPost['type'] ?? $topic->type;
454
                $hydrator = new ObjectPropertyHydrator();
460
                $topic->cost = $dataPost['cost'] ?? $topic->cost;
455
                $hydrator->hydrate($dataPost, $topic);
461
                
456
 
462
                // Update basic topic data first
457
                // Update basic topic data first
463
                if(!$topicMapper->update($topic)) {
458
                if(!$topicMapper->update($topic)) {
Línea 944... Línea 939...
944
                'image_filename' => '',
939
                'image_filename' => '',
945
                'marketplace_filename' => ''
940
                'marketplace_filename' => ''
946
            ];
941
            ];
Línea 947... Línea 942...
947
 
942
 
948
            // Process main image if uploaded
943
            // Process main image if uploaded
949
            if ($storage->setCurrentFilename('file')) {
944
            if ($storage->setCurrentFilename('image')) {
950
                $target_size = $this->config['leaderslinked.image_sizes.microlearning_image_size'];
945
                $target_size = $this->config['leaderslinked.image_sizes.microlearning_image_size'];
Línea 951... Línea 946...
951
                list($target_width, $target_height) = explode('x', $target_size);
946
                list($target_width, $target_height) = explode('x', $target_size);
952
 
947