File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
app/code/Magento/ImportExport/Controller/Adminhtml/Import Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,20 @@ public function execute()
93
93
$ this ->addErrorMessages ($ resultBlock , $ errorAggregator );
94
94
} else {
95
95
$ this ->importModel ->invalidateIndex ();
96
+
97
+ $ noticeHtml = $ this ->historyModel ->getSummary ();
98
+
99
+ if ($ this ->historyModel ->getErrorFile ()) {
100
+ $ noticeHtml .= '<div class="import-error-wrapper"> ' . __ ('Only the first 100 errors are shown. ' )
101
+ . '<a href=" '
102
+ . $ this ->createDownloadUrlImportHistoryFile ($ this ->historyModel ->getErrorFile ())
103
+ . '"> ' . __ ('Download full report ' ) . '</a></div> ' ;
104
+ }
105
+
106
+ $ resultBlock ->addNotice (
107
+ $ noticeHtml
108
+ );
109
+
96
110
$ this ->addErrorMessages ($ resultBlock , $ errorAggregator );
97
111
$ resultBlock ->addSuccess (__ ('Import successfully done ' ));
98
112
}
You can’t perform that action at this time.
0 commit comments