Projekt

Allgemein

Profil

GX-Bug #66708 » 66708.patch

Till Tepelmann, 29.04.2020 15:21

Unterschiede anzeigen:

src/GXMainComponents/Controllers/HttpView/Admin/ContentManager/ContentManagerElementsController.inc.php (date 1588165724594)
1 1
<?php
2 2
/* --------------------------------------------------------------
3
 ContentManagerPagesController.inc.php 2018-02-16
3
 ContentManagerPagesController.inc.php 2020-04-29
4 4
 Gambio GmbH
5 5
 http://www.gambio.de
6
 Copyright (c) 2018 Gambio GmbH
6
 Copyright (c) 2020 Gambio GmbH
7 7
 Released under the GNU General Public License (Version 2)
8 8
 [http://www.gnu.org/licenses/gpl-2.0.html]
9 9
 --------------------------------------------------------------
......
449 449
            $languageCode = $this->languageProvider->getCodeById(new IdType($elementsDataDataSet['languages_id']))
450 450
                ->asString();
451 451
            foreach ($elementsDataDataSet as $field => $value) {
452
                $contentManagerData[$field][$languageCode] = $value;
453
            }
454
        }
455
        
456
        $contentType                                           = isset($elementsDataDataSet) ? str_replace('elements_',
457
                                                                                                           '',
458
                                                                                                           $elementsDataDataSet['content_position']) : 'start';
452
                if (!empty($elementsDataDataSet['content_position'])) {
453
                    $contentType = !empty($elementsDataDataSet['content_position']) ? str_replace('elements_',
454
                        '',
455
                        $elementsDataDataSet['content_position']) : 'start';
456
                }
457
                $contentManagerData[$field][$languageCode] = $value;
458
            }
459
        }
460
        if(empty($contentType)) $contentType = "start";
461
        
459 462
        $contentManagerData['elements-content']['form_action'] = 'admin.php?do=ContentManagerElements/update&id='
460 463
                                                                 . $contentId . '&type=' . $contentType;
461 464
        $contentManagerData['elements-script']['form_action']  = 'admin.php?do=ContentManagerElements/update&id='
......
693 696
            'styleEdit'     => $styleEdit
694 697
        ];
695 698
    }
696
}
699
}
    (1-1/1)