Skip to content

Commit

Permalink
Params form controls respect validation rules
Browse files Browse the repository at this point in the history
So can have required fields on import global settings form.
BiologicalRecordsCentre/iRecord#1770
  • Loading branch information
johnvanbreda committed Dec 18, 2024
1 parent 50430b3 commit 6d69d8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helper_base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ protected static function getParamsFormControl($key, array $info, array $options
'helpText' => $options['helpText'] ? $info['description'] : '',
'fieldname' => $fieldPrefix . $key,
'nocache' => isset($options['nocache']) && $options['nocache'],
'validation' => $info['validation'] ?? NULL,
];
// If this parameter is in the URL or post data, put it in the control
// instead of the original default.
Expand Down

0 comments on commit 6d69d8b

Please sign in to comment.