
no-reply at lighthouseapp
Apr 28, 2009, 11:22 AM
Post #2 of 3
(530 views)
Permalink
|
|
[Bricolage #1] publish_status => 0 Does not work
[In reply to]
|
|
// Add your reply above here ================================================== theory updated this ticket at April 28th, 2009 @ 06:22 PM 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 chagrin, 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! -------------------------------------------------------------------------------- State: new View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/1-publish_status-0-does-not-work Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/1-publish_status-0-does-not-work/watch Update your Profile: http://bricolage.lighthouseapp.com/profile Support: support [at] lighthouseapp or http://help.lighthouseapp.com
|