-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: doc path for moved repository #2621
Conversation
|
hey @jschwalmi thanks for your contribution! Good catch indeed 😁 👍 Please make sure, that you commit the changes with your GitHub user and sign the CLA with this user 🙂 The commit message should look like described here: https://github.com/shopware5/shopware/wiki/Contribute#commit-message |
@@ -63,7 +63,7 @@ public function createInstanceFromNamedArguments($className, $arguments, $secure | |||
$folders = Shopware()->Container()->getParameter('shopware.plugin_directories'); | |||
|
|||
$folders[] = Shopware()->DocPath('engine_Shopware'); | |||
$folders[] = Shopware()->DocPath('vendor_shopware_shopware'); | |||
$folders[] = Shopware()->DocPath('vendor_shopware5_shopware'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't the name computed by the composer package name, and that is still shopware/shopware 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shyim is right. @jschwalmi with your change, the path would look like this: /home/mt/www/5.7/vendor/shopware5/shopware/
, but that path does not exist.
Could you explain, how the problem could be reproduced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mitelg @shyim
I discovered this problem because it was reported that the product stream with Peudo prices no longer worked. All products were displayed in the stream and not only the discounted products.
In the \Shopware_Controllers_Backend_ProductStream::loadPreviewAction the conditions could not be unserialized. vendor/shopware5/shopware/engine/Shopware/Controllers/Backend/ProductStream.php:99.
I think all product streams that have a condition are affected by this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you installed Shopware? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shyim I install Shopware over composer. Do you think that this is not the case in a ZIP installation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer create-project shopware/composer-project:@dev test
cd test
ls -la vendor/shopware/shopware
seems fine for me 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it could work
@@ -63,7 +63,7 @@ public function createInstanceFromNamedArguments($className, $arguments, $secure | |||
$folders = Shopware()->Container()->getParameter('shopware.plugin_directories'); | |||
|
|||
$folders[] = Shopware()->DocPath('engine_Shopware'); | |||
$folders[] = Shopware()->DocPath('vendor_shopware_shopware'); | |||
$folders[] = Shopware()->DocPath('vendor_shopware5_shopware'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shyim is right. @jschwalmi with your change, the path would look like this: /home/mt/www/5.7/vendor/shopware5/shopware/
, but that path does not exist.
Could you explain, how the problem could be reproduced?
hey @jschwalmi what is the status here? 😊 |
The comment from @shyim is fine for me :) |
alright, then I will close your PR 🙂 👍 |
Wrong DocPath means that the path or class cannot be downloaded.