diff --git a/interface/patient_file/summary/demographics.php b/interface/patient_file/summary/demographics.php index 099db498b59..b997a99a3cb 100644 --- a/interface/patient_file/summary/demographics.php +++ b/interface/patient_file/summary/demographics.php @@ -648,6 +648,7 @@ function load_location(location) { } let data = event.data; if (data && data.type === 'cdr-edit-source') { + window.name = event.source.name; dlgclose(); window.top.removeEventListener('message', windowMessageHandler); // loadFrame already handles webroot and /interface/ prefix. @@ -658,7 +659,7 @@ function load_location(location) { }; window.top.addEventListener('message', windowMessageHandler); - dlgopen('', '', 800, 200, '', '', { + dlgopen('', 'cdrEditSource', 800, 200, '', '', { buttons: [{ text: , close: true,