Skip to content

Commit

Permalink
missing setting dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Dec 20, 2024
1 parent 67b5a6e commit 6444159
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@
get_string('uploadfilesizelimitmode_desc', 'block_opencast'),
$defaultsizelimitmode, $uploadsizelimitmodes));

$additionalsettings->hide_if('block_opencast/uploadfilesizelimitmode_' . $instance->id,
'block_opencast/enablechunkupload_' . $instance->id, 'notchecked');

// Dynamic file size limit config setting.
$defaultuploadfilelimit = 2 * filesize::UNIT_GB;
$additionalsettings->add(new filesize(
Expand All @@ -455,6 +458,7 @@
$defaultuploadfilelimit,
filesize::UNIT_GB
));
// Double dependencies.
$additionalsettings->hide_if('block_opencast/uploadfilelimit_' . $instance->id,
'block_opencast/uploadfilesizelimitmode_' . $instance->id, 'eq', 1);
$additionalsettings->hide_if('block_opencast/uploadfilelimit_' . $instance->id,
Expand Down

0 comments on commit 6444159

Please sign in to comment.