File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class DataProvider extends \Magento\Ui\DataProvider\ModifierPoolDataProvider
3030 protected $ loadedData ;
3131
3232 /**
33+ * Constructor
34+ *
3335 * @param string $name
3436 * @param string $primaryFieldName
3537 * @param string $requestFieldName
Original file line number Diff line number Diff line change @@ -26,16 +26,21 @@ class Instructions extends \Magento\Payment\Block\Info
2626 protected $ _template = 'Magento_Payment::info/instructions.phtml ' ;
2727
2828 /**
29- * Get instructions text from order payment
30- * (or from config, if instructions are missed in payment)
29+ * Get instructions text from order payment (or from config, if instructions are missed in payment).
3130 *
3231 * @return string
3332 */
3433 public function getInstructions ()
3534 {
3635 if ($ this ->_instructions === null ) {
37- $ this ->_instructions = $ this ->getInfo ()->getAdditionalInformation ('instructions ' )
38- ?: trim ($ this ->getMethod ()->getConfigData ('instructions ' ) ?? '' );
36+ $ additionalInstructions = $ this ->getInfo ()->getAdditionalInformation ('instructions ' );
37+ if ($ additionalInstructions ) {
38+ $ this ->_instructions = $ additionalInstructions ;
39+ return $ this ->_instructions ;
40+ }
41+
42+ $ instructions = $ this ->getMethod ()->getConfigData ('instructions ' );
43+ $ this ->_instructions = $ instructions !== null ? trim ($ instructions ) : '' ;
3944 }
4045 return $ this ->_instructions ;
4146 }
You can’t perform that action at this time.
0 commit comments