From 79dcf5ced2f63d6f8e58470807c2e2e4e7bd33a5 Mon Sep 17 00:00:00 2001 From: Shaun Einolf Date: Fri, 8 Sep 2017 09:30:42 -0400 Subject: [PATCH] fixed bug where button more conditions button showing for 3 diseases and fixed issue where other-undefined disease was being showed for self --- js/fhh.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/fhh.js b/js/fhh.js index fedeaf2a..5a447e45 100755 --- a/js/fhh.js +++ b/js/fhh.js @@ -1877,11 +1877,16 @@ function createConditionsList(family_member, listType) { }; } else { - html += '
  • ' + $.t("diseases:" + value['Disease Code']) + '
  • '; + if (value['Disease Code']=='other'|| value['Disease Code']=='other-undefined') { + html += '
  • ' + value['Detailed Disease Name'] + '
  • '; + } + else { + html += '
  • ' + $.t("diseases:" + value['Disease Code']) + '
  • '; + }; }; }); html += '' - if (family_member['Health History'].length>2) { + if (family_member['Health History'].length>3) { html+= '
    '; }; };