From 5b0f616e80a076334d6f7c0010d2978fdaabccb5 Mon Sep 17 00:00:00 2001 From: Christine Rogers Date: Tue, 1 Nov 2016 16:28:41 -0400 Subject: [PATCH 1/3] Update to Sample Instrument : LorisForm Dates --- docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc b/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc index 3a4ec621411..c2002c0d714 100644 --- a/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc +++ b/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc @@ -104,7 +104,7 @@ class NDB_BVL_Instrument_radiology_review extends NDB_BVL_Instrument $examiners = $this->_getExaminerNames(); $this->form->addElement('select', 'Examiner', 'Radiologist', $examiners); - $this->form->addGroupRule('Date_taken', 'Date of Administration is required', 'required'); + $this->form->addRule('Date_taken', 'Date of Administration is required', 'required'); $this->form->registerRule('checkdate', 'callback', '_checkDate'); $this->form->addRule('Date_taken', 'Date of Administration is invalid', 'checkdate'); From f7e4349ff1fdbcca5c52bdcc6a10517a8f4c4322 Mon Sep 17 00:00:00 2001 From: Christine Rogers Date: Wed, 2 Nov 2016 09:28:59 -0400 Subject: [PATCH 2/3] also removing deprecated registerRule() --- docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc b/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc index c2002c0d714..d1f99802214 100644 --- a/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc +++ b/docs/instruments/NDB_BVL_Instrument_radiology_review.class.inc @@ -106,7 +106,6 @@ class NDB_BVL_Instrument_radiology_review extends NDB_BVL_Instrument $this->form->addRule('Date_taken', 'Date of Administration is required', 'required'); - $this->form->registerRule('checkdate', 'callback', '_checkDate'); $this->form->addRule('Date_taken', 'Date of Administration is invalid', 'checkdate'); $this->form->addRule('Examiner', 'Examiner is required', 'required'); From 2898d8b1ddfce87589f3d1dfbd7918e3677a1b99 Mon Sep 17 00:00:00 2001 From: Christine Rogers Date: Wed, 2 Nov 2016 09:29:46 -0400 Subject: [PATCH 3/3] Reliability: removing deprecated registerRule() --- php/libraries/NDB_Reliability.class.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/php/libraries/NDB_Reliability.class.inc b/php/libraries/NDB_Reliability.class.inc index 3de7506f086..6f60765ea14 100644 --- a/php/libraries/NDB_Reliability.class.inc +++ b/php/libraries/NDB_Reliability.class.inc @@ -381,8 +381,6 @@ class NDB_Reliability extends NDB_Form $examiners = $this->_getExaminerNames(); $this->addSelect('Examiner', 'Reliability Coder', $examiners); - $this->form->registerRule('checkdate', 'callback', '_checkDate'); - $this->addSelect( 'invalid', 'Mark as invalid',