Skip to content

Commit

Permalink
MED-3: Edit form validation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thies committed Jan 31, 2024
1 parent 42cc8ab commit 36c166b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/streamio/classes/form/edit_resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function definition_after_data() {
public function validation($data, $files) {
$errors = [];

if (empty($data['newfile']) && empty($data['file'])) {
if (empty($data['edit']) && empty($data['newfile']) && empty($data['file'])) {
$errors['file'] = get_string('required');
}

Expand Down

0 comments on commit 36c166b

Please sign in to comment.