1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-28 20:45:00 +03:00

fix template create topic

This commit is contained in:
Mzhelskiy Maxim 2014-07-30 15:26:45 +07:00
parent ded28dc7a2
commit 8ec8013c16
2 changed files with 4 additions and 4 deletions

View file

@ -82,10 +82,10 @@
{* Показывает дополнительные поля *}
{$params = [ [ 'target_type' => 'topic_'|cat:$type->getCode() ] ]}
{$params = [ 'target_type' => 'topic_'|cat:$type->getCode() ] }
{if $topic}
{$params[] = [ 'target_id' => $topic->getId() ]}
{$params.target_id = $topic->getId()}
{/if}
{insert name="block" block="propertyUpdate" params=$params}
@ -144,7 +144,7 @@
{include 'components/button/button.tpl' sType='button' sClasses='js-topic-preview-text-button' sText=$aLang.common.preview_text}
{* Сохранить в черновиках / Перенести в черновики *}
{if $topic->getPublish() != 0}
{if $topic && $topic->getPublish() != 0}
{include 'components/button/button.tpl'
sId = {( $topic ) ? 'submit-edit-topic-save' : 'submit-add-topic-save' }
sText = $aLang.topic.add.button[ ( $sEvent == 'add' ) ? 'save_as_draft' : 'mark_as_draft' ]}

@ -1 +1 @@
Subproject commit f85a154d1a88a831b747929ca8bef2c458b47056
Subproject commit 69cb2e0c3bd94b138746ad7611685e07d6ad24d9