Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
PT-1995: Multiple external IDs per patient
Browse files Browse the repository at this point in the history
Bugfix: JS error when editing a patient and no external identifiers are enabled
  • Loading branch information
sdumitriu committed Dec 20, 2017
1 parent f783054 commit 0525bd1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
this.eidClassName = 'PhenoTips.LabeledIdentifierClass';

// Edit mode
if($('inline')) {
if($('inline') && $$('.labeled-eid.label.eid-ZZEID_NUMBER_PLACEHOLDERZZ')[0]) {
this.getNewEidRowTemplate();
$$('a.button.add-labeled-eid.add-data-button').invoke('observe', 'click', this.ajaxAddEidData.bindAsEventListener(this));
$$('a.action.delete-eid.button.secondary').invoke('observe', 'click', this.ajaxDeleteEidData.bindAsEventListener(this));
Expand Down

0 comments on commit 0525bd1

Please sign in to comment.