Another update to r3226.
This commit is contained in:
parent
32b10e2914
commit
331767daee
1 changed files with 2 additions and 1 deletions
|
|
@ -205,7 +205,8 @@ EOT
|
|||
# Blah, some duplication with RSSCapable.pm.
|
||||
my ($revisionDate) = $session->db->quickArray("SELECT MAX(revisionDate) FROM Collaboration WHERE assetId = ?", [$csId]);
|
||||
my $cs = WebGUI::Asset->newByDynamicClass($session, $csId, $revisionDate);
|
||||
if ($cs->isPrototype or $cs->get('status') ne 'published') {
|
||||
if ($cs->isPrototype or not($cs->get('status') eq 'approved' or
|
||||
$cs->get('status') eq 'archived')) {
|
||||
$cs->update({ rssCapableRssEnabled => 1, rssCapableRssFromParentId => undef });
|
||||
if (!$cs->isPrototype) {
|
||||
# Update the most recent published one too.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue