Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bug 1447] New: publish_status => 0 Does not work

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


bugs at lists

Mar 12, 2009, 2:37 PM

Post #1 of 1 (530 views)
Permalink
[Bug 1447] New: publish_status => 0 Does not work

http://bugs.bricolage.cc/show_bug.cgi?id=1447

Summary: publish_status => 0 Does not work
Product: Bricolage
Version: 1.10.7 - Current stable release
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Database
AssignedTo: david [at] kineticode
ReportedBy: david [at] kineticode


I was writing a template today with code like this:

for my $t (ref($story)->list({
element_key_name => 'topic',
site_id => $story->get_site_id,
unexpired => 1,
published_version => $burner->get_mode == PUBLISH_MODE,
})) {
# ...
}

To my chagin, it didn't work. It thinks it's only supposed to show
published_versions for some reason, even in preview mode. This is irritating. I
had to change it to:

( $burner->get_mode == PUBLISH_MODE ? (published_version => 1) : ()),

Which is just stupid. It should work properly with `published_version => 0` or
`published_version => ''`. So fix it!


--
Configure bugmail: http://bugs.bricolage.cc/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.