File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -849,7 +849,7 @@ following arguments are required in $args:
849
849
850
850
=head3 method
851
851
852
- The name of the WebGUI::Asset method to call
852
+ The name of the asset method to call
853
853
854
854
=head3 args
855
855
@@ -867,13 +867,22 @@ An key in Asset's i18n hash for the title of the rendered console page
867
867
868
868
The full url to redirect to after the fork has finished.
869
869
870
+ =head3 className
871
+
872
+ The class to call C<method > in, as in
873
+
874
+ $className->$method
875
+
876
+ defaults to the current Asset's classname if left blank.
877
+
870
878
=cut
871
879
872
880
sub forkWithStatusPage {
873
881
my ( $self , $args ) = @_ ;
874
882
my $session = $self -> session;
875
883
876
- my $process = WebGUI::Fork-> start( $session , ' WebGUI::Asset' , $args -> {method }, $args -> {args } );
884
+ my $className = $args -> {className } || $self -> get(' className' );
885
+ my $process = WebGUI::Fork-> start( $session , $className , $args -> {method }, $args -> {args } );
877
886
878
887
if ( my $groupId = $args -> {groupId } ) {
879
888
$process -> setGroup($groupId );
You can’t perform that action at this time.
0 commit comments