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,7 +472,15 @@ public function copyQuoteToOrder()
472
472
}
473
473
$ quotePath = $ value ['quote_path ' ];
474
474
$ orderPath = $ value ['order_path ' ];
475
- $ this ->_mediaDirectory ->getAbsolutePath ($ orderPath )
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 )
476
484
);
477
485
} else {
478
486
$ this ->_mediaDirectory ->copyFile ($ quotePath , $ orderPath );
@@ -489,15 +497,7 @@ public function copyQuoteToOrder()
489
497
* @param string $url
490
498
* @return $this
491
499
*/
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 )
500
+ public function setCustomOptionDownloadUrl ($ url )
501
501
{
502
502
$ this ->_customOptionDownloadUrl = $ url ;
503
503
return $ this ;
You can’t perform that action at this time.
0 commit comments