Skip to content

Commit a8a6777

Browse files
committed
Fixed some issues with resolving the constants that were moved from TrialPatient to TrialPatientController
1 parent e3708e3 commit a8a6777

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

OETrialModule.php

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public function init()
1111
$this->setImport(array(
1212
'OETrial.models.*',
1313
'OETrial.components.*',
14+
'OETrial.controllers.*',
1415
'OECaseSearch.components.DBProviderInterface',
1516
'OECaseSearch.models.CaseSearchParameter'
1617
));

controllers/TrialPatientController.php

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public function filters()
2121
{
2222
return array(
2323
'accessControl',
24-
'ajaxOnly + accept',
2524
);
2625
}
2726

views/trial/view.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ function changePatientStatus(object, trial_patient_id, new_status) {
154154
url: '<?php echo Yii::app()->controller->createUrl('/OETrial/trialPatient/changeStatus'); ?>/' + trial_patient_id + '?new_status=' + new_status,
155155
type: 'GET',
156156
success: function (response) {
157-
if (response == '<?php echo TrialPatient::STATUS_CHANGE_CODE_OK; ?>') {
157+
if (response == '<?php echo TrialPatientController::STATUS_CHANGE_CODE_OK; ?>') {
158158
$.fn.yiiListView.update('shortlistedPatientList');
159159
$.fn.yiiListView.update('acceptedPatientList');
160160
$.fn.yiiListView.update('rejectedPatientList');
161-
} else if (response == '<?php echo TrialPatient::STATUS_CHANGE_CODE_ALREADY_IN_INTERVENTION; ?>') {
161+
} else if (response == '<?php echo TrialPatientController::STATUS_CHANGE_CODE_ALREADY_IN_INTERVENTION; ?>') {
162162
new OpenEyes.UI.Dialog.Alert({
163163
content: "You can't accept this patient into your Trial because the patient has already been accepted into another Intervention trial."
164164
}).open();

0 commit comments

Comments
 (0)