Skip to content

Commit

Permalink
Merge pull request openwebwork#2569 from drgrice1/file-manager-preser…
Browse files Browse the repository at this point in the history
…ve-checks

Preserve check and radio state when performing a submit action in the File Manager.
  • Loading branch information
Alex-Jordan authored Sep 17, 2024
2 parents 72fc97e + 4250d0d commit 22496b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/WeBWorK/ContentGenerator/Instructor/FileManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ sub Init ($c) {

sub HiddenFlags ($c) {
return $c->c(
$c->hidden_field(dates => ''),
$c->hidden_field(overwrite => ''),
$c->hidden_field(unpack => ''),
$c->hidden_field(autodelete => ''),
$c->hidden_field(autodelete => 'Automatic'),
$c->hidden_field(dates => $c->getFlag('dates')),
$c->hidden_field(format => $c->getFlag('format', 'Automatic')),
$c->hidden_field(overwrite => $c->getFlag('overwrite')),
$c->hidden_field(unpack => $c->getFlag('unpack')),
$c->hidden_field(autodelete => $c->getFlag('autodelete')),
)->join('');
}

Expand Down

0 comments on commit 22496b8

Please sign in to comment.