diff --git a/docs/migration.txt b/docs/migration.txt index 4eaeb7976..4a959169d 100644 --- a/docs/migration.txt +++ b/docs/migration.txt @@ -705,7 +705,7 @@ of 6.9. perl -pi.bak -e 's!WebGUI\:\:Privilege\:\:!\$self->session->privilege->!g' fileNameGoesHere -5.23.10 WebGUI::DateTime API Refactored +5.23.11 WebGUI::DateTime API Refactored WebGUI::DateTime is now accessed through $session. @@ -721,6 +721,15 @@ perl -pi.bak -e 's![^\:]time\(!\$self->session->datetime->time(!g' fileNameGoesH perl -pi.bak -e 's!WebGUI\:\:DateTime\:\:!\$self->session->datetime->!g' fileNameGoesHere +5.23.12 WebGUI::Form API Refactored + +In 6.9 the WebGUI::Form API was refactored to accept $session as the first +parameter to each method. + +perl -pi.bak -e 's!WebGUI\:\:Form\:\:(\w+)\((.*)\)!WebGUI::Form::$1(\$self->session,$2)!g' fileNameGoesHere +perl -pi.bak -e 's!WebGUI\:\:Form\:\:(\w+)\($!WebGUI::Form::$1(\$self->session,!g' fileNameGoesHere + + 6. Automatic list of Assets in Help System. ------------------------------------- 6.1 Starting in WebGUI 6.7, there is now an automatic list of all Assets diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 5499f9a24..142cfff85 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1550,7 +1550,7 @@ sub www_manageAssets { '; $output .= ''; return $output; @@ -252,14 +252,14 @@ sub print { Replaces the default submit button with a new definition. -B This uses the same syntax of the WebGUI::Form::submit() method. +B This uses the same syntax of the WebGUI::Form::submit($self->session,) method. =cut sub submit { my $self = shift; my $submit = shift; - $self->{_submit} = WebGUI::Form::Submit($submit); + $self->{_submit} = WebGUI::Form::Submit($self->session,$submit); }