[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-devel
Subject:    Re: [Bug 980]  New: Assets sometimes lose their workflows and get
From:       David Wheeler <david () kineticode ! com>
Date:       2005-05-26 20:19:15
Message-ID: 89726776-3435-409F-97CA-0B09ED36F21E () kineticode ! com
[Download RAW message or body]

On May 25, 2005, at 02:11 , Scott Lanning wrote:

> I've seen this about as many times as McDonald's has sold burgers.
> But I don't know if it's due to local patches or not, no idea.

The problem is that someone else published a story that caused the  
checked-out story to be published using

   $burner->publish_another($story);

To prevent this problem, add this to the call to Story->list() when  
looking up a story to publish in a template (requires Bricolage 1.8.4  
or later to work properly):

         published_version => 1,

This forces the query to return the version of the story that was  
last published, rather than the latest version (which may be checked  
out!). That should eliminate the problem. In fact, it's the very  
reason that I added the "published_version" parameter to list()!

Regards,

David

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic