fix [ 1274239 ] Can Not Save Edits to Assets

This commit is contained in:
JT Smith 2005-08-26 19:46:09 +00:00
parent 52736e209d
commit d1f1538b67
2 changed files with 6 additions and 2 deletions

View file

@ -2,6 +2,7 @@
- User search now includes user alias.
- Fixed a bug in the user manager where userId, date created, date updated,
and karma were not showing up when editing users.
- fix [ 1274239 ] Can Not Save Edits to Assets
6.7.2

View file

@ -1395,8 +1395,11 @@ sub www_editSave {
$object = $self->addChild({className=>$session{form}{class}});
$object->{_parent} = $self;
} else {
return $self->getContainer->www_view if ($self->canEditIfLocked || !$self->isLocked);
$object = $self->addRevision;
if ($self->canEditIfLocked || !$self->isLocked) {
$object = $self->addRevision;
} else {
return $self->getContainer->www_view;
}
}
$object->processPropertiesFromFormPost;
$object->updateHistory("edited");