Mailing List Archive

[Bricolage #238] subelement_key_name as parameter to Story->list doesn't return the right stories
// Add your reply above here
==================================================
phillipadsmith updated this ticket at February 22nd, 2011 @ 10:20 PM

I'm looking at a template like so:

my $query = {
element_key_name => 'story',
subelement_key_name => 'related_podcast_audio',
Order => 'cover_date',
OrderDirection => 'DESC',
Limit => 5,
unexpired => 1, # No expired stories!
published_version => 1,
};
my (@stories) = Bric::Biz::Asset::Business::Story->list($query);

What's in @stories is not correct; there are stories that do not have a sub-element 'related_podcast_audio'. If I change that to subelement_id, it works as expected.

Thus, I would say there is a bug here.

This is on Bricolage 2.0. Can someone confirm?

Phillip.
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/238-subelement_key_name-as-parameter-to-story-list-doesnt-return-the-right-stories

Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/238-subelement_key_name-as-parameter-to-story-list-doesnt-return-the-right-stories/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support@lighthouseapp.com or http://help.lighthouseapp.com
[Bricolage #238] subelement_key_name as parameter to Story->list doesn't return the right stories [ In reply to ]
// Add your reply above here
==================================================
theory updated this ticket at February 23rd, 2011 @ 05:22 PM
* Tag changed from "" to ""key names" list subelement templates"
Are you sure the key name is spelled correctly?
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/238-subelement_key_name-as-parameter-to-story-list-doesnt-return-the-right-stories

Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/238-subelement_key_name-as-parameter-to-story-list-doesnt-return-the-right-stories/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support@lighthouseapp.com or http://help.lighthouseapp.com