diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2020-11-24 15:49:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 15:49:49 +0100 |
commit | 6156a49f6ed258da2e4949f16d331959af537adb (patch) | |
tree | c4ef89e03af9f4040eaeae994d0ea7c72a4da5fa | |
parent | f37155d28ba1bc805eeb3abd445d3d965ecb34bd (diff) | |
parent | 2526c5e042e7fb54e6d82d54bdbc78003eaa5cf8 (diff) | |
download | nextcloud-server-6156a49f6ed258da2e4949f16d331959af537adb.tar.gz nextcloud-server-6156a49f6ed258da2e4949f16d331959af537adb.zip |
Merge pull request #24341 from nextcloud/fix/sharing-enforce-expire-checkbox
Fix the config key on the sharing expire checkbox
-rw-r--r-- | apps/settings/templates/settings/admin/sharing.php | 2 | ||||
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/templates/settings/admin/sharing.php b/apps/settings/templates/settings/admin/sharing.php index 59915c581e7..9f651ce6d6c 100644 --- a/apps/settings/templates/settings/admin/sharing.php +++ b/apps/settings/templates/settings/admin/sharing.php @@ -56,7 +56,7 @@ <input type="text" name='shareapi_internal_expire_after_n_days' id="shareapiInternalExpireAfterNDays" placeholder="<?php p('7')?>" value='<?php p($_['shareInternalExpireAfterNDays']) ?>' /> <?php p($l->t('days')); ?> - <input type="checkbox" name="shareapi_internal_enforce_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox" + <input type="checkbox" name="shareapi_enforce_internal_expire_date" id="shareapiInternalEnforceExpireDate" class="checkbox" value="1" <?php if ($_['shareInternalEnforceExpireDate'] === 'yes') { print_unescaped('checked="checked"'); } ?> /> diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index e18081f3a8d..ebe799bf4f8 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -160,7 +160,7 @@ class JSConfigHelper { $defaultInternalExpireDate = $defaultInternalExpireDateEnforced = null; if ($defaultInternalExpireDateEnabled) { $defaultInternalExpireDate = (int)$this->config->getAppValue('core', 'shareapi_internal_expire_after_n_days', '7'); - $defaultInternalExpireDateEnforced = $this->config->getAppValue('core', 'shareapi_internal_enforce_expire_date', 'no') === 'yes'; + $defaultInternalExpireDateEnforced = $this->config->getAppValue('core', 'shareapi_enforce_internal_expire_date', 'no') === 'yes'; } $countOfDataLocation = 0; |