Skip to content

Commit

Permalink
Fix validation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Dec 15, 2024
1 parent aab1845 commit a4af966
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions field/datalynxview/field_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ public function get_data($slashed = true) {
*/
public function validation($data, $files) {
$errors = parent::validation($data, $files);

$errors = array();

if (!empty($data['param1']) && empty($data['param2'])) {
$errors['param2'] = get_string('missingview', 'datalynxfield_datalynxview');
}
Expand Down

0 comments on commit a4af966

Please sign in to comment.