Skip to content

Commit 79dcf5c

Browse files
committed
fixed bug where button more conditions button showing for 3 diseases and fixed issue where other-undefined disease was being showed for self
1 parent d61b1c2 commit 79dcf5c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

js/fhh.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1877,11 +1877,16 @@ function createConditionsList(family_member, listType) {
18771877
};
18781878
}
18791879
else {
1880-
html += '<li class="conditionsEntry">' + $.t("diseases:" + value['Disease Code']) + '</li>';
1880+
if (value['Disease Code']=='other'|| value['Disease Code']=='other-undefined') {
1881+
html += '<li class="conditionsEntry">' + value['Detailed Disease Name'] + '</li>';
1882+
}
1883+
else {
1884+
html += '<li class="conditionsEntry">' + $.t("diseases:" + value['Disease Code']) + '</li>';
1885+
};
18811886
};
18821887
});
18831888
html += '</ul>'
1884-
if (family_member['Health History'].length>2) {
1889+
if (family_member['Health History'].length>3) {
18851890
html+= '<div class="readMore"><button class="readMoreButton" value="0">' + $.t('fhh_js.more') + '</button></div></div>';
18861891
};
18871892
};

0 commit comments

Comments
 (0)