Merry Xmas bugfix #1: sqlform would not always obey regexes
This commit is contained in:
parent
93288c8332
commit
f008f68bfc
2 changed files with 5 additions and 4 deletions
|
|
@ -14,7 +14,8 @@
|
||||||
- rfe: Added a "dateSpan" Event template variable that will show a properly
|
- rfe: Added a "dateSpan" Event template variable that will show a properly
|
||||||
formatted date/time span depending on how the event's start and end are.
|
formatted date/time span depending on how the event's start and end are.
|
||||||
- fix: Disobedient Forum Rich Editor
|
- fix: Disobedient Forum Rich Editor
|
||||||
|
- fix: SQLForm - fixed a bug where regexes would sometimes be ignored (Martin
|
||||||
|
Kamerbeek / Oqapi)
|
||||||
|
|
||||||
7.3.2
|
7.3.2
|
||||||
- fix: Calendar and Event now have printable templates and URL parameters.
|
- fix: Calendar and Event now have printable templates and URL parameters.
|
||||||
|
|
|
||||||
|
|
@ -2741,7 +2741,7 @@ my $cmd = '$self->session->form->'.$field->{formFieldType}.'($fieldName)';
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if input matches its regex
|
# Check if input matches its regex
|
||||||
if (_matchField($self, $fieldValue, $field->{regex})) {
|
if (_matchField($self, $self->session->form->process($fieldName), $field->{regex})) {
|
||||||
push(@update, "$fieldName = ".$self->session->db->quote($fieldValue));
|
push(@update, "$fieldName = ".$self->session->db->quote($fieldValue));
|
||||||
} else {
|
} else {
|
||||||
push(@error, $i18n->get('ers regex mismatch').' '.$regexes{$field->{regex}}.' '.$field->{displayName});
|
push(@error, $i18n->get('ers regex mismatch').' '.$regexes{$field->{regex}}.' '.$field->{displayName});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue