Remove autocommit from addRev in Story, because it committed the
story before the keywords were set, which messed up searching. Adjust tests to request autocommit on all submitted stories.
This commit is contained in:
parent
46db295296
commit
4226ef211f
5 changed files with 14 additions and 3 deletions
|
|
@ -78,7 +78,7 @@ sub addRevision {
|
|||
|
||||
my $newPhotoData = $newSelf->duplicatePhotoData;
|
||||
$newSelf->setPhotoData($newPhotoData);
|
||||
$newSelf->requestAutoCommit;
|
||||
#$newSelf->requestAutoCommit;
|
||||
|
||||
return $newSelf;
|
||||
}
|
||||
|
|
@ -607,8 +607,8 @@ sub processPropertiesFromFormPost {
|
|||
my $session = $self->session;
|
||||
$self->next::method;
|
||||
my $archive = delete $self->{_parent}; ##Force a new lookup.
|
||||
$session->log->warn($self->getParent->get('className'));
|
||||
$session->log->warn($self->getParent->getParent->get('className'));
|
||||
#$session->log->warn($self->getParent->get('className'));
|
||||
#$session->log->warn($self->getParent->getParent->get('className'));
|
||||
my $form = $session->form;
|
||||
##Handle old data first, to avoid iterating across a newly added photo.
|
||||
my $photoData = $self->getPhotoData;
|
||||
|
|
@ -824,6 +824,7 @@ Extend the superclass to make sure that the asset always stays hidden from navig
|
|||
sub update {
|
||||
my $self = shift;
|
||||
my $properties = shift;
|
||||
#$self->session->log->warn('story update');
|
||||
return $self->next::method({%$properties, isHidden => 1});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue