fixed: copying or duplicating an asset in the asset manager never autocommits

This commit is contained in:
Graham Knop 2008-08-25 16:10:07 +00:00
parent baa3c6f01a
commit c8c8747efa
2 changed files with 17 additions and 0 deletions

View file

@ -1,4 +1,5 @@
7.6.0
- fixed: copying or duplicating an asset in the asset manager never autocommits
- fixed: Server side spell checker errors when checking text with single quotes
- remove Do Nothing On Delete workflow and allow none to be selected for on delete etc workflow
- remove remnants of realtime workflow selection code

View file

@ -370,6 +370,22 @@ sub www_manage {
}
}
# Handle Auto Request Commit setting
if ($session->setting->get("autoRequestCommit")) {
# Make sure version tag hasn't already been committed by another process
my $versionTag = WebGUI::VersionTag->getWorking($session, "nocreate");
if ($versionTag && $session->setting->get("skipCommitComments")) {
$versionTag->requestCommit;
}
elsif ($versionTag) {
$session->http->setRedirect(
$currentAsset->getUrl("op=commitVersionTag;tagId=".WebGUI::VersionTag->getWorking($session)->getId)
);
return undef;
}
}
# Show the page
$session->style->setLink( $session->url->extras('yui/build/datatable/assets/skins/sam/datatable.css'), {rel=>'stylesheet', type=>'text/css'});
$session->style->setLink( $session->url->extras('yui/build/menu/assets/skins/sam/menu.css'), {rel=>'stylesheet', type=>'text/css'});