aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-25 12:42:52 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-09-25 12:42:52 +0000
commita84d29fa3531f873f846fef591c8db020ccf1bb2 (patch)
tree70336be2c5983955765eb804b85e7556b964b357 /app
parent1764f6f2c748b6a4accab18b4e7a7e109bebaca3 (diff)
fixes #3228
Closes #3228 Merge request studip/studip!2190
Diffstat (limited to 'app')
-rw-r--r--app/views/file/choose_destination.php4
-rw-r--r--app/views/file/edit.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/file/choose_destination.php b/app/views/file/choose_destination.php
index fa5e73d..7247439 100644
--- a/app/views/file/choose_destination.php
+++ b/app/views/file/choose_destination.php
@@ -30,10 +30,10 @@ $options = array_filter([
<div>
<? if (isset($parent_folder) && ($parent_folder->isWritable($GLOBALS['user']->id) || count($parent_folder->getSubfolders()))): ?>
<div class="clickable">
- <?= Icon::create('folder-parent', Icon::ROLE_CLICKABLE)->asInput(50, ['formaction' => $controller->action_url('choose_folder/' . $parent_folder->getId()), 'to_plugin' => $options['from_plugin']]) ?>
+ <?= Icon::create('folder-parent', Icon::ROLE_CLICKABLE)->asInput(50, ['formaction' => $controller->action_url('choose_folder/' . $parent_folder->getId()), 'to_plugin' => $options['from_plugin'] ?? null]) ?>
<button
class="undecorated"
- formaction="<?= $controller->action_link('choose_folder/' . $parent_folder->getId()) ?>" <? if ($options['from_plugin']): ?> name="to_plugin" value="<?= htmlReady($options['from_plugin']) ?>"<? endif; ?>>
+ formaction="<?= $controller->action_link('choose_folder/' . $parent_folder->getId()) ?>" <? if ($options['from_plugin']): ?> name="to_plugin" value="<?= htmlReady($options['from_plugin'] ?? null) ?>"<? endif; ?>>
<?= _('Aktueller Ordner') ?>
</button>
</div>
diff --git a/app/views/file/edit.php b/app/views/file/edit.php
index 3e36abb..803b312 100644
--- a/app/views/file/edit.php
+++ b/app/views/file/edit.php
@@ -3,7 +3,7 @@
<div id="file_management_forms">
<form method="post" data-dialog class="default"
- action="<?= $controller->action_link('edit/' . $file_ref->id, ['from_plugin' => $from_plugin]) ?>">
+ action="<?= $controller->action_link('edit/' . $file_ref->id, ['from_plugin' => $from_plugin ?? null]) ?>">
<?= CSRFProtection::tokenTag() ?>
<fieldset>