fix issue, default foler is set on content creation

This commit is contained in:
Manuel Raynaud
2013-09-21 16:58:38 +02:00
parent 4e3768e0e9
commit 04e0da56e7
3 changed files with 34 additions and 5 deletions

View File

@@ -100,10 +100,10 @@
<select id="{$label_attr.for}" required="required" name="{$name}" class="form-control">
<option value="0">{intl l="Top level"}</option>
{$myparent=$PARENT}
{* loop name="fold-parent" type="folder-tree" visible="*" folder="0"}
{$myparent=$DEFAULT_FOLDER}
{loop name="fold-parent" type="folder-tree" visible="*" folder="0"}
<option value="{$ID}" style="padding-left: {3 + $LEVEL * 20}px" {if $myparent == $ID}selected="selected"{/if} {if $folder_id == $ID}disabled="disabled"{/if}>{$TITLE}</option>
{/loop *}
{/loop }
</select>
</div>