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

Craig Kaiser craig at bestpractical.com
Wed Apr 22 11:54:51 EDT 2020


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

1:  63aa449 ! 1:  8016b46 Have the submitted args values have the highest priority for default value
    @@ -23,7 +23,8 @@
     +my $request_args = $m->request_args();
     +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 } ) {
    ++} elsif ( $field_type eq 'custom' && $cf->Id &&
    ++        ( exists $request_args->{ $input_name } || $request_args->{ $input_name .'s' } ) ) {
     +    $default = ($request_args->{ $input_name } ||
     +                $request_args->{ $input_name .'s' } );
      }



More information about the Bps-public-commit mailing list