From 1497c06a52377ada3a472ceb88fcddc2f0c5aa73 Mon Sep 17 00:00:00 2001 From: Aysel Afsar Date: Fri, 19 Feb 2016 17:06:20 -0500 Subject: [PATCH] Bug fixing: Call search() method in change event of studyDate if studyDate input is not empty to prevent duplicated data. Enter key calls search() method when studyDate is empty --- .../client/components/worklistResult/worklistResult.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/worklist/client/components/worklistResult/worklistResult.js b/Packages/worklist/client/components/worklistResult/worklistResult.js index 976c49ee1..7604e62ee 100644 --- a/Packages/worklist/client/components/worklistResult/worklistResult.js +++ b/Packages/worklist/client/components/worklistResult/worklistResult.js @@ -180,7 +180,10 @@ Template.worklistResult.events({ var dates = dateRange.split("-"); studyDateFrom = dates[0]; studyDateTo = dates[1]; - search(); + + if (dateRange !== "") { + search(); + } } });