File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
Review/Controller/Adminhtml/Product
Controller/Adminhtml/Order
Test/Unit/Controller/Adminhtml/Order/Creditmemo
Shipping/Controller/Adminhtml/Order/Shipment
dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function execute()
31
31
} catch (LocalizedException $ e ) {
32
32
$ this ->messageManager ->addError ($ e ->getMessage ());
33
33
} catch (\Exception $ e ) {
34
- $ this ->messageManager ->addException ($ e , __ ('Something went wrong while deleting record(s) . ' ));
34
+ $ this ->messageManager ->addException ($ e , __ ('Something went wrong while deleting these records . ' ));
35
35
}
36
36
}
37
37
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public function execute()
23
23
try {
24
24
$ data = $ this ->getRequest ()->getPost ('history ' );
25
25
if (empty ($ data ['comment ' ]) && $ data ['status ' ] == $ order ->getDataByKey ('status ' )) {
26
- throw new \Magento \Framework \Exception \LocalizedException (__ ('Please enter comment text . ' ));
26
+ throw new \Magento \Framework \Exception \LocalizedException (__ ('Please enter a comment . ' ));
27
27
}
28
28
29
29
$ notify = isset ($ data ['is_customer_notified ' ]) ? $ data ['is_customer_notified ' ] : false ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public function execute()
79
79
$ data = $ this ->getRequest ()->getPost ('comment ' );
80
80
if (empty ($ data ['comment ' ])) {
81
81
throw new \Magento \Framework \Exception \LocalizedException (
82
- __ ('Please enter Comment Text . ' )
82
+ __ ('Please enter a comment . ' )
83
83
);
84
84
}
85
85
$ this ->creditmemoLoader ->setOrderId ($ this ->getRequest ()->getParam ('order_id ' ));
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public function execute()
74
74
$ this ->getRequest ()->setParam ('invoice_id ' , $ this ->getRequest ()->getParam ('id ' ));
75
75
$ data = $ this ->getRequest ()->getPost ('comment ' );
76
76
if (empty ($ data ['comment ' ])) {
77
- throw new LocalizedException (__ ('Please enter Comment Text . ' ));
77
+ throw new LocalizedException (__ ('Please enter a comment . ' ));
78
78
}
79
79
$ invoice = $ this ->getInvoice ();
80
80
if (!$ invoice ) {
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ public function testExecuteException()
212
212
*/
213
213
public function testExecuteNoComment ()
214
214
{
215
- $ message = 'Please enter Comment Text . ' ;
215
+ $ message = 'Please enter a comment . ' ;
216
216
$ response = ['error ' => true , 'message ' => $ message ];
217
217
$ data = [];
218
218
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public function execute()
65
65
$ data = $ this ->getRequest ()->getPost ('comment ' );
66
66
if (empty ($ data ['comment ' ])) {
67
67
throw new \Magento \Framework \Exception \LocalizedException (
68
- __ ('Please enter Comment Text . ' )
68
+ __ ('Please enter a comment . ' )
69
69
);
70
70
}
71
71
$ this ->shipmentLoader ->setOrderId ($ this ->getRequest ()->getParam ('order_id ' ));
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function getAddCommentData()
100
100
[
101
101
'status ' => 'processing ' ,
102
102
'comment ' => '' ,
103
- 'response ' => '{"error":true,"message":"Please enter comment text ."} '
103
+ 'response ' => '{"error":true,"message":"Please enter a comment ."} '
104
104
]
105
105
];
106
106
}
You can’t perform that action at this time.
0 commit comments