From ee8853eea3258812427b6c3ddc93b7a23a6c2366 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 1 Nov 2021 18:41:26 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 6b4f7d15..af6a25d9 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -457,8 +457,8 @@ var study_description = dataSet.string('x00081030').toLowerCase(); console.log("STUDY", study_description); - // try to match with a study description - if ($(`#id_examination_from option`).length < 1) { + // try to match with a study description (if not already selected) + if ($(`#id_examination_to option`).length < 1) { option = $(`#id_examination_from option[title*='${study_description}' i]`); if (option.length) {