diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 6a8b7b31d..12ecdbb7f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -14,6 +14,7 @@ - fix: Email address with just one character in the user part not accepted - fix: Image (file) added to page shows before committing changes - fix: Typo in fileImport.pl at line 265 (zxp) + - fix: getMedia asset constructor returning wrong object type 7.0.5 diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index e2e0a861e..9ace2ddf9 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -786,7 +786,7 @@ A reference to the current session. sub getMedia { my $class = shift; my $session = shift; - return WebGUI::Asset->new($session, "PBasset000000000000003"); + return WebGUI::Asset->newByDynamicClass($session, "PBasset000000000000003"); }