diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2023-08-02 15:25:25 +0200 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2023-08-02 15:25:25 +0200 |
| commit | 39ea4e180e305f4ce5cdd0110fa610d74cbd1cf6 (patch) | |
| tree | f6a5f09285a79d3494ce3cda9690dcad2fcc0b85 /app/views | |
| parent | 71194736c5989805257db7966c83863dc69db08c (diff) | |
fixed errorsbiest-02988
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/file/edit_license.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/file/edit_license.php b/app/views/file/edit_license.php index ddd031d..a9cf94e 100644 --- a/app/views/file/edit_license.php +++ b/app/views/file/edit_license.php @@ -1,8 +1,9 @@ <form action="<?= $controller->link_for('file/edit_license', $origin_folder_id ?? null) ?>" method="post" class="default" data-dialog="reload-on-close"> <input type="hidden" name="re_location" value="<?= htmlReady($re_location) ?>"> -<? foreach ($file_refs as $file_ref) : ?> - <input type="hidden" name="file_refs[]" value="<?= htmlReady($file_ref->id) ?>"> + <input type="hidden" name="to_plugin" value="<?= $plugin ? $plugin->getPluginName() : '' ?>"> +<? foreach ($files as $file) : ?> + <input type="hidden" name="file_refs[]" value="<?= htmlReady($file->getId()) ?>"> <? endforeach ?> @@ -17,7 +18,7 @@ <? endif ?> - <? if (count($file_refs) === 1) : ?> + <? if (count($files) === 1) : ?> <fieldset> <legend><?= _('Barrierefreiheit') ?></legend> <label> @@ -30,7 +31,7 @@ <?= $this->render_partial('file/_terms_of_use_select.php', [ 'content_terms_of_use_entries' => $licenses, - 'selected_terms_of_use_id' => $file_ref->content_terms_of_use_id + 'selected_terms_of_use_id' => $file_ref->content_terms_of_use_id ?? '' ]) ?> <footer data-dialog-button> |
