Another update to r3226.

This commit is contained in:
Drake 2006-11-10 17:46:14 +00:00
parent 32b10e2914
commit 331767daee

View file

@ -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.