Overview
Comment:Fix edit of advanced transactions
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev | 1.0.0-rc2
Files: files | file ages | folders
SHA1: d8c7ce86a2973a5e0fde6571001963546c27a884
User & Date: bohwaz on 2020-11-27 12:41:30
Other Links: branch diff | manifest | tags
Context
2020-11-27
12:43
New release check-in: afa60d222c user: bohwaz tags: dev, 1.0.0-rc2
12:41
Fix edit of advanced transactions check-in: d8c7ce86a2 user: bohwaz tags: dev, 1.0.0-rc2
12:32
Delete unused code check-in: 09d5e5feb7 user: bohwaz tags: dev
Changes

Modified src/templates/acc/transactions/edit.tpl from [5d5cdf1278] to [61ebad2980].

39
40
41
42
43
44
45

46
47
48
49
50
51
52
53
			<legend>{$type.label}</legend>
			{if $type.id == $transaction::TYPE_ADVANCED}
				{* Saisie avancée *}
				{include file="acc/transactions/_lines_form.tpl" chart_id=$current_year.id_chart}
			{else}
				<dl>
				{foreach from=$type.accounts key="key" item="account"}

					{input type="list" target="acc/charts/accounts/selector.php?targets=%s&chart=%d"|args:$account.targets_string,$chart_id name="account_%d_%d"|args:$type.id,$key label=$account.label required=1 default=$types_accounts[$key]}
				{/foreach}
				</dl>
			{/if}
		</fieldset>
	{/foreach}

	<fieldset>







>
|







39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
			<legend>{$type.label}</legend>
			{if $type.id == $transaction::TYPE_ADVANCED}
				{* Saisie avancée *}
				{include file="acc/transactions/_lines_form.tpl" chart_id=$current_year.id_chart}
			{else}
				<dl>
				{foreach from=$type.accounts key="key" item="account"}
					<?php $selected = $types_accounts[$key] ?? null; ?>
					{input type="list" target="acc/charts/accounts/selector.php?targets=%s&chart=%d"|args:$account.targets_string,$chart_id name="account_%d_%d"|args:$type.id,$key label=$account.label required=1 default=$selected}
				{/foreach}
				</dl>
			{/if}
		</fieldset>
	{/foreach}

	<fieldset>