diff --git a/app/imaging/edit/route.js b/app/imaging/edit/route.js index 4cfab00d62..af9f1e558d 100644 --- a/app/imaging/edit/route.js +++ b/app/imaging/edit/route.js @@ -9,6 +9,12 @@ export default AbstractEditRoute.extend(ChargeRoute, PatientListRoute, { newTitle: t('imaging.titles.new_title'), pricingCategory: 'Imaging', + actions: { + returnToAllItems: function() { + this.controller.send('returnToAllItems'); + } + }, + getNewData: function() { return Ember.RSVP.resolve({ selectPatient: true, diff --git a/app/labs/edit/controller.js b/app/labs/edit/controller.js index 74219a3bb3..d2faf404c1 100644 --- a/app/labs/edit/controller.js +++ b/app/labs/edit/controller.js @@ -98,7 +98,7 @@ export default AbstractEditController.extend(ChargeActions, PatientSubmodule, { alertMessage = i18n.t('labs.alerts.request_completed_message'); } else { alertTitle = i18n.t('labs.alerts.request_saved_title'); - alertMessage = i18n.t('labs.alerts.request_completed_message'); + alertMessage = i18n.t('labs.alerts.request_saved_message'); } if (multipleRecords) { afterDialogAction = this.get('cancelAction'); diff --git a/app/labs/edit/route.js b/app/labs/edit/route.js index b07edb9f7a..18e5ff8877 100644 --- a/app/labs/edit/route.js +++ b/app/labs/edit/route.js @@ -10,6 +10,12 @@ export default AbstractEditRoute.extend(ChargeRoute, PatientListRoute, { newTitle: t('labs.new_title'), pricingCategory: 'Lab', + actions: { + returnToAllItems: function() { + this.controller.send('returnToAllItems'); + } + }, + getNewData: function() { return Ember.RSVP.resolve({ selectPatient: true, diff --git a/app/mixins/charge-actions.js b/app/mixins/charge-actions.js index 19f48d9bd3..209b0b5e27 100644 --- a/app/mixins/charge-actions.js +++ b/app/mixins/charge-actions.js @@ -212,10 +212,7 @@ export default Ember.Mixin.create({ if (!Ember.isEmpty(selectedItem)) { return new Ember.RSVP.Promise(function(resolve, reject) { if (Ember.isArray(selectedItem)) { - var pricingIds = selectedItem.map(function(pricingItem) { - return pricingItem.id; - }); - this.store.findByIds('pricing', pricingIds).then(resolve, reject); + this.store.findByIds('pricing', selectedItem).then(resolve, reject); } else { this.store.find('pricing', selectedItem.id).then(resolve, reject); }