File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
app/code/Magento/Catalog/Model/Product/Option/Type Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -472,15 +472,7 @@ public function copyQuoteToOrder()
472
472
}
473
473
$ quotePath = $ value ['quote_path ' ];
474
474
$ orderPath = $ value ['order_path ' ];
475
-
476
- if (!$ this ->_mediaDirectory ->isFile ($ quotePath ) || !$ this ->_mediaDirectory ->isReadable ($ quotePath )) {
477
- throw new \Exception ();
478
- }
479
-
480
- if ($ this ->_coreFileStorageDatabase ->checkDbUsage ()) {
481
- $ this ->_coreFileStorageDatabase ->copyFile (
482
- $ this ->_mediaDirectory ->getAbsolutePath ($ quotePath ),
483
- $ this ->_mediaDirectory ->getAbsolutePath ($ orderPath )
475
+ $ this ->_mediaDirectory ->getAbsolutePath ($ orderPath )
484
476
);
485
477
} else {
486
478
$ this ->_mediaDirectory ->copyFile ($ quotePath , $ orderPath );
@@ -497,7 +489,15 @@ public function copyQuoteToOrder()
497
489
* @param string $url
498
490
* @return $this
499
491
*/
500
- public function setCustomOptionDownloadUrl ($ url )
492
+ public function setCustomOp
493
+ if (!$ this ->_mediaDirectory ->isFile($ quotePath ) || !$ this ->_mediaDirectory->isReadable($ quotePath)) {
494
+ throw new \Exception ();
495
+ }
496
+
497
+ if ($ this ->_coreFileStorageDatabase ->checkDbUsage ()) {
498
+ $ this ->_coreFileStorageDatabase ->copyFile (
499
+ $ this ->_mediaDirectory ->getAbsolutePath ($ quotePath ),
500
+ tionDownloadUrl ($ url )
501
501
{
502
502
$ this ->_customOptionDownloadUrl = $ url ;
503
503
return $ this ;
You can’t perform that action at this time.
0 commit comments