- moved Gallery utility methods to WebGUI::Utility::Gallery

- Added tests for GalleryAlbum RSS
- More tests for comments
- Test International Macro sprintf as third+ arguments
- Add Gallery search limiting by user ID
- Remaining i18n for Gallery templates
- Fix: Search form now visible in Photo assets
Moved a lot of stuff from Photo to GalleryFile
This commit is contained in:
Doug Bell 2008-03-20 18:51:44 +00:00
parent 38256af5f6
commit ab6f4defe3
25 changed files with 1386 additions and 905 deletions

View file

@ -82,13 +82,6 @@ sub definition {
label => $i18n->get("groupIdAddFile label"),
hoverHelp => $i18n->get("groupIdAddFile description"),
},
groupIdModerator => {
tab => "security",
fieldType => "group",
defaultValue => 3, # Admins
label => $i18n->get("groupIdModerator label"),
hoverHelp => $i18n->get("groupIdModerator description"),
},
imageResolutions => {
tab => "properties",
fieldType => "checkList",
@ -963,6 +956,11 @@ sub www_search {
. $db->quote( '%' . $form->get("description") . '%' )
;
}
if ( $form->get("userId") ) {
$where .= q{ AND assetData.ownerUserId = }
. $db->quote( $form->get("userId") )
;
}
my $joinClass = [
'WebGUI::Asset::Wobject::GalleryAlbum',
@ -983,6 +981,7 @@ sub www_search {
. 'className=' . $form->get('className') . ';'
. 'creationDate_after=' . $form->get('creationDate_after') . ';'
. 'creationDate_before=' . $form->get('creationDate_before') . ';'
. 'userId=' . $form->get("userId") . ';'
);
my $p