fixed: Changing name of Matrix listing leaves discussion forum with old name
This commit is contained in:
parent
8c2c8b8b8f
commit
878ded9c70
2 changed files with 21 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
- Fix: Search form now visible in Photo assets
|
||||
- fixed: Editting matrix listings shows fields from other matrix assets
|
||||
- fixed: Matrix assets show pending listings from all matrix assets on a site
|
||||
- fixed: Changing name of Matrix listing leaves discussion forum with old name
|
||||
|
||||
7.5.7
|
||||
- fixed: HttpProxy mixes original site's content encoding with WebGUI's
|
||||
|
|
|
|||
|
|
@ -770,6 +770,26 @@ sub www_editListingSave {
|
|||
$data{status} = "pending";
|
||||
$isNew = 1;
|
||||
}
|
||||
else {
|
||||
my $forum = WebGUI::Asset::Wobject::Collaboration->new($self->session, $listing->{forumId});
|
||||
if ($forum && $forum->get('title') ne $productName) {
|
||||
my $oldTag = WebGUI::VersionTag->getWorking($self->session, 1);
|
||||
my $newTag = WebGUI::VersionTag->create($self->session, {
|
||||
name => $productName.' / '.$self->session->user->username,
|
||||
workflowId => 'pbworkflow000000000003' });
|
||||
$newTag->setWorking;
|
||||
$forum->addRevision({
|
||||
title => $productName,
|
||||
menuTitle => $productName,
|
||||
url => $productName,
|
||||
});
|
||||
$newTag->requestCommit;
|
||||
$newTag->clearWorking;
|
||||
$oldTag->setWorking
|
||||
if defined $oldTag;
|
||||
}
|
||||
my $forum = WebGUI::
|
||||
}
|
||||
$data{maintainerId} = $self->session->form->process("maintainerId") if ($self->canEdit);
|
||||
$data{assetId} = $self->getId;
|
||||
my $listingId = $self->session->db->setRow("Matrix_listing","listingId",\%data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue