
no-reply at lighthouseapp
Oct 16, 2009, 8:51 AM
Post #7 of 8
(91 views)
Permalink
|
|
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links.
[In reply to]
|
|
// Add your reply above here ================================================== Aaron Fuleki updated this ticket at October 16th, 2009 @ 03:51 PM This is reproducible on our 1.11.1 instance, which was made by upgrading our 1.10.6-ish instance. So, maybe the breakage was propagated. I'm not 100% percent sure what the below code does, but lines 106-123 (part that returns your search results) of bricolage/comp/admin/manager/element_type has two possible return values at the end: <code> # Output the list of found objects. $m->comp('/widgets/listManager/listManager.mc', behavior => $behavior, object => $key, state_key => $state_key, constrain => $constrain, profile => ($id) ? undef : $prof_sub, fields => [qw(name key_name biz_class_id)], exclude => $exclude, addition => defined $id ? undef : $add_sub, select => $sel_sub, alter => { biz_class_id => sub { return 'Subelement' unless $_[1]->get_top_level; return get_disp_name($_[0]); }, }, );</code> In our context, the first return defaults to 'Subelement', which seems to indicate that the *unless* clause is not getting what it needs. So, what exactly is going on there? We've traced around other files that seem to be involved in rendering and processing the search result lists, but haven't found anything obvious. Have we just done something dumb with our element creation? Were we supposed to make parents or some kind of relationships between element types that the search code expects? -------------------------------------------------------------------------------- Assigned: Bugs (at bricolage) State: new View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch Update your Profile: http://bricolage.lighthouseapp.com/profile Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com
|