- The export system now attempts to create the export path if it doesn't

already exist.
 - fix [ 1287741 ] 6.7.3 Cannot insert a WebGUI collateral image in IE.
 - fix [ 1293163 ] Error when using Syndication
 - fix [ 1295718 ] Moderating submissions/posts is broken
 - fix [ 1288770 ] Couldn't call method www_view on asset
 - fix [ 1278672 ] Timezones does not still not work properly in webgui
This commit is contained in:
JT Smith 2005-09-21 20:04:15 +00:00
parent 7a76e2efdc
commit 5efbd4a709
8 changed files with 32 additions and 11 deletions

View file

@ -70,8 +70,8 @@ sub addRevision {
my $newVersion = WebGUI::Asset->new($self->getId, $self->get("className"), $now);
$newVersion->updateHistory("created revision");
$newVersion->update($self->get);
$newVersion->update($properties) if ($properties);
$newVersion->setVersionLock unless ($session{setting}{autoCommit});
$newVersion->update($properties) if ($properties);
return $newVersion;
}
@ -127,7 +127,7 @@ Unlock's the asset and sets it to approved.
sub commit {
my $self = shift;
$self->unsetVersionLock;
WebGUI::SQL->write("update assetData set status='approved' where assetId=".quote($self->getId)." and revisionDate=".quote($self->get("revisionDate")));
$self->update({status=>'approved'});
$self->purgeCache;
}