altered table update:
now retaining the template name values from the template column as new template values in the document table Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -214,9 +214,9 @@
|
||||
<th>{t('template')}:</th>
|
||||
<td>
|
||||
{#if editable}
|
||||
<TemplateSelector company={doc.company.id} bind:value={doc.template} onchange={() => update('template_id',doc.template)} />
|
||||
<TemplateSelector company={doc.company.id} bind:value={doc.template} onchange={() => update('template',doc.template)} />
|
||||
{:else}
|
||||
{doc.template.name}
|
||||
{doc.template}
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user