Skip to content

Commit

Permalink
enable related type info for any case
Browse files Browse the repository at this point in the history
  • Loading branch information
snopoke committed Dec 21, 2013
1 parent b1ec5c8 commit 15c7763
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions casexml/apps/case/templatetags/case_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def sortkey(child, type_info=None):
def get_session_data(case, current_case, type_info):
# this logic should ideally be implemented in subclasses of
# CommCareCase
if type_info and case.domain == 'pact':
if type_info:
attr = type_info[case.type]['case_id_attr']
return {
attr: case._id,
Expand Down Expand Up @@ -239,7 +239,7 @@ def render_case_hierarchy(case, options):
timezone = options.get('timezone', pytz.utc)
columns = options.get('columns') or case.related_cases_columns
show_view_buttons = options.get('show_view_buttons', True)
type_info = case.related_type_info
type_info = options.get('related_type_info', case.related_type_info)

case_list = get_flat_descendant_case_list(
case, get_case_url, type_info=type_info)
Expand Down

0 comments on commit 15c7763

Please sign in to comment.