fixed: Rich editor collateral image uploader is broken
This commit is contained in:
parent
1b8567abb2
commit
c0cd862362
2 changed files with 4 additions and 3 deletions
|
|
@ -464,9 +464,9 @@ sub www_addImageSave {
|
|||
# check if user can edit the current asset
|
||||
return $session->privilege->insufficient('bare') unless $base->canEdit;
|
||||
|
||||
#my $imageId = WebGUI::Form::Image->create($session);
|
||||
my $imageId = WebGUI::Form::Image->new($session,{name => 'filename'})->getDefaultValue;
|
||||
my $imageObj = WebGUI::Storage::Image->get($session, $imageId);
|
||||
my $imageForm = WebGUI::Form::Image->new($session,{name => 'filename'});
|
||||
$imageForm->set('value', $imageForm->getValue);
|
||||
my $imageObj = $imageForm->getStorageLocation;
|
||||
##This is a hack. It should use the WebGUI::Form::File API to insulate
|
||||
##us from future form name changes.
|
||||
my $filename = $imageObj->getFiles->[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue