Ver Fonte

Ticket #255 - Page Builder -> Create Page fix.

AntonLV há 10 anos atrás
pai
commit
d2d57396c4
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      studio/template/scripts/BxBaseStudioBuilderPage.php

+ 2 - 2
studio/template/scripts/BxBaseStudioBuilderPage.php

@@ -982,7 +982,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
                     'caption' => _t('_adm_bp_txt_page_cover'),
                     'info' => '',
                     'value' => '1',
-                    'checked' => $aPage['cover'] == '1',
+                    'checked' => isset($aPage['cover']) && $aPage['cover'] == '1',
                     'db' => array (
                         'pass' => 'Int',
                     )
@@ -994,7 +994,7 @@ class BxBaseStudioBuilderPage extends BxDolStudioBuilderPage
 					'images_transcoder' => $this->sTranscoder,
 					'uploaders' => array ('sys_html5'),
 					'multiple' => false,
-					'content_id' => $aPage['id'],
+					'content_id' => isset($aPage['id']) ? $aPage['id'] : 0,
 					'ghost_template' => BxDolStudioTemplate::getInstance()->parseHtmlByName('bp_fgt_cover.html', array(
 						'name' => 'cover_image',
 					)),