Skip to content

Commit

Permalink
Fix issue with elementInstance #74
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelopez committed Jan 7, 2025
1 parent 9d91981 commit a3ab447
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<a id="donwload-button" class="formsubmit translations-download-button"
data-process="download"
data-action="enupal-translate/translate/download"
data-siteId="{{ elementInstance.siteId }}">
data-siteId="{{ selectedSite.id }}">
{{ "Download"|t('enupal-translate') }}
</a>
</li>
Expand All @@ -61,7 +61,7 @@
{{ csrfInput() }}
<input type="hidden" name="action" value="enupal-translate/translate/upload">
{{ redirectInput('enupal-translate') }}
<input type="hidden" id="importSiteId" name="importSiteId" value="{{ elementInstance.siteId }}">
<input type="hidden" id="importSiteId" name="importSiteId" value="{{ selectedSite.id }}">
<input type="file" accept=".csv" name="translations-upload" style="display: none" />
</form>
<div class="btn submit translations-upload-button" data-icon="upload" style="position: relative; overflow: hidden;" role="button">{{ "Import file"|t('enupal-translate') }}</div>
Expand All @@ -80,7 +80,7 @@
<form method="post" id="translate-ajax" accept-charset="utf-8">
{{ csrfInput() }}
<input type="hidden" name="action" value="enupal-translate/translate/save">
<input type="hidden" name="siteId" value="{{ elementInstance.siteId }}">
<input type="hidden" name="siteId" value="{{ selectedSite.id }}">

{{ parent() }}
</form>
Expand Down

0 comments on commit a3ab447

Please sign in to comment.