[Bps-public-commit] rt-extension-formtools branch, set-default-value-to-submitted-args-first, repushed
Craig Kaiser
craig at bestpractical.com
Thu Apr 23 11:26:41 EDT 2020
The branch set-default-value-to-submitted-args-first was deleted and repushed:
was 8016b46f45b7c69bebbd3344665828d514c0ae04
now a13c330e847b7df576aef467c85a37dd76e89f8d
1: 8016b46 ! 1: a13c330 Have the submitted args values have the highest priority for default value
@@ -9,9 +9,10 @@
--- a/html/FormTools/Field
+++ b/html/FormTools/Field
@@
+ }
}
-
+-
-unless ( $default ) {
- my $request_args = $m->request_args();
- if ( $field_type eq 'core' && $request_args->{$name} ) {
@@ -24,7 +25,7 @@
+if ( $field_type eq 'core' && exists $request_args->{$name} ) {
+ $default = $request_args->{$name};
+} elsif ( $field_type eq 'custom' && $cf->Id &&
-+ ( exists $request_args->{ $input_name } || $request_args->{ $input_name .'s' } ) ) {
++ ( exists $request_args->{ $input_name } ) ) {
+ $default = ($request_args->{ $input_name } ||
+ $request_args->{ $input_name .'s' } );
}
More information about the Bps-public-commit
mailing list