Skip to content

Commit

Permalink
Merge pull request #210 from identity-research-lab/hide-noncoded-ques…
Browse files Browse the repository at this point in the history
…tions-2

Hide affinity and relfection code entry fields on case show
  • Loading branch information
CoralineAda authored Dec 10, 2024
2 parents ac215e3 + 2766a8d commit 1f15f5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.from(record_id, record)
def graph_query
{
explainer: "Access and explore this case (and all of its relationships) as an Interactive Persona in the TMI-Graph app.",
query: "MATCH (p:Persona)-[]-(n) WHERE p.permalink=\"#{permalink}\" RETURN p,n"
query: "MATCH (p:Persona)-[]-(n) WHERE p.case_id=\"#{self.id}\" RETURN p,n"
}
end

Expand Down
6 changes: 5 additions & 1 deletion app/views/cases/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
<td class="label"><%= link_to question.label, question_path(question), class: "zoom-link" %></td>
<td class="response"><%= response.value || "(Not answered)" %></td>
<td class="form-entry">
<%= render "/responses/form", response: response, success: nil, filters: false %>
<% if question.is_affinity || question.is_reflection %>
<% else %>
<%= render "/responses/form", response: response, success: nil, filters: true %>
<% end %>
</td>
</tr>
<% end %>
Expand Down

0 comments on commit 1f15f5e

Please sign in to comment.