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

Mailing List Archive: Bricolage: bugs

[Bricolage #1] publish_status => 0 Does not work

 

 

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


no-reply at lighthouseapp

Apr 28, 2009, 11:24 AM

Post #1 of 3 (591 views)
Permalink
[Bricolage #1] publish_status => 0 Does not work

// Add your reply above here
==================================================
theory updated this ticket at April 28th, 2009 @ 06:24 PM

Scott added in a comment:

I'd guess that checked\_in (and probably anything in `PARAM_WHERE_MAP` that doesn't have a '?' in it) would also work like that, though its documentation says otherwise.


published_version => "s.published_version = i.version AND i.checked_out = '0'",

checked_in => 'i.checked_out = '
. '( SELECT checked_out '
. 'FROM story_instance '
. 'WHERE version = i.version '
. 'AND story__id = i.story__id '
. 'ORDER BY checked_out ASC LIMIT 1 )',
--------------------------------------------------------------------------------

State: open
Milestone: 1.11.2
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


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


no-reply at lighthouseapp

Apr 28, 2009, 11:22 AM

Post #3 of 3 (527 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
* State changed from "new" to "open"
* Milestone changed from "" to "1.11.2"
* Assigned user changed from "Bugs (at bricolage)" to "theory"

--------------------------------------------------------------------------------

State: open
Milestone: 1.11.2
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

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.