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
|
|
@ -1,4 +1,5 @@
|
||||||
7.5.14
|
7.5.14
|
||||||
|
- fixed: Rich editor collateral image uploader is broken
|
||||||
- fixed: ems 2.0: tickets get created as badges also
|
- fixed: ems 2.0: tickets get created as badges also
|
||||||
- fixed: Non-admin users can now add Gallery assets
|
- fixed: Non-admin users can now add Gallery assets
|
||||||
- fixed: Thingy Data now retains File and Images if they aren't explicitly deleted
|
- fixed: Thingy Data now retains File and Images if they aren't explicitly deleted
|
||||||
|
|
|
||||||
|
|
@ -464,9 +464,9 @@ sub www_addImageSave {
|
||||||
# check if user can edit the current asset
|
# check if user can edit the current asset
|
||||||
return $session->privilege->insufficient('bare') unless $base->canEdit;
|
return $session->privilege->insufficient('bare') unless $base->canEdit;
|
||||||
|
|
||||||
#my $imageId = WebGUI::Form::Image->create($session);
|
my $imageForm = WebGUI::Form::Image->new($session,{name => 'filename'});
|
||||||
my $imageId = WebGUI::Form::Image->new($session,{name => 'filename'})->getDefaultValue;
|
$imageForm->set('value', $imageForm->getValue);
|
||||||
my $imageObj = WebGUI::Storage::Image->get($session, $imageId);
|
my $imageObj = $imageForm->getStorageLocation;
|
||||||
##This is a hack. It should use the WebGUI::Form::File API to insulate
|
##This is a hack. It should use the WebGUI::Form::File API to insulate
|
||||||
##us from future form name changes.
|
##us from future form name changes.
|
||||||
my $filename = $imageObj->getFiles->[0];
|
my $filename = $imageObj->getFiles->[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue