[Bps-public-commit] rt-extension-formtools branch, set-default-value-to-submitted-args-first, repushed

Craig Kaiser craig at bestpractical.com
Tue Apr 21 16:24:20 EDT 2020


The branch set-default-value-to-submitted-args-first was deleted and repushed:
       was 38ee6bd5f169c88b84f0c9aa220db2e27249389a
       now 63aa449f4fd863bdb6de398a6e8797b7da5fbdc3

1:  38ee6bd ! 1:  63aa449 Have the submitted args values have the highest priority for default value
    @@ -21,9 +21,9 @@
     -                    $request_args->{ $input_name .'s' } );
     -    }
     +my $request_args = $m->request_args();
    -+if ( $field_type eq 'core' && $request_args->{$name} ) {
    ++if ( $field_type eq 'core' && exists $request_args->{$name} ) {
     +    $default = $request_args->{$name};
    -+} elsif ( $field_type eq 'custom' &&  $cf->Id ) {
    ++} elsif ( $field_type eq 'custom' && $cf->Id && exists $request_args->{ $input_name } ) {
     +    $default = ($request_args->{ $input_name } ||
     +                $request_args->{ $input_name .'s' } );
      }



More information about the Bps-public-commit mailing list