From 1cfa9372b521f71ae07477d2d3a17f7f69e70df2 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 4 Mar 2009 21:57:31 +0000 Subject: [PATCH] forward porting gallery bug fixes --- lib/WebGUI/Asset/Wobject/Gallery.pm | 1 + lib/WebGUI/Asset/Wobject/GalleryAlbum.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/WebGUI/Asset/Wobject/Gallery.pm b/lib/WebGUI/Asset/Wobject/Gallery.pm index ad29886b9..a8110175b 100644 --- a/lib/WebGUI/Asset/Wobject/Gallery.pm +++ b/lib/WebGUI/Asset/Wobject/Gallery.pm @@ -1104,6 +1104,7 @@ sub www_addAlbumService { description => $form->get('synopsis','textarea'), synopsis => $form->get('synopsis','textarea'), othersCanAdd => $form->get('othersCanAdd','yesNo'), + ownerUserId => $session->user->userId, }); $album->requestAutoCommit; diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index 2bd363323..ce9ebe02d 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -1019,6 +1019,7 @@ sub www_addFileService { title => $form->get('title','text'), description => $form->get('synopsis','textarea'), synopsis => $form->get('synopsis','textarea'), + ownerUserId => $session->user->userId, }); my $storage = $file->getStorageLocation;