Media's conflict when copying entries
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Media's conflict when copying entries
Aimeos : 2021.07.4
Laravel 8
Hello Aimeos, thank you again for your efforts.
I found a weird behaviour when copying a entire entry from the admin panel :
For products for example, let's say a product A has a media "Media1.jpg", when duplactating the Product A to create a new Product (let's call it "Product B"), if i change the product B media before saving (to have "Media2.jpg" for example), and then save, Media1.jpg is deleted from the filesystem. That always leads to loose images on the initial product (whose entries should be copied )
I guess it has something to do with and unhandled case in the media controller here :
When duplacting a product, and before saving it, the path still refers to the initial product media.
Thank you in advance
Laravel 8
Hello Aimeos, thank you again for your efforts.
I found a weird behaviour when copying a entire entry from the admin panel :
For products for example, let's say a product A has a media "Media1.jpg", when duplactating the Product A to create a new Product (let's call it "Product B"), if i change the product B media before saving (to have "Media2.jpg" for example), and then save, Media1.jpg is deleted from the filesystem. That always leads to loose images on the initial product (whose entries should be copied )
I guess it has something to do with and unhandled case in the media controller here :
Code: Select all
if( $path && $fs->has( $path ) ) {
$fs->rm( $path );
}
Thank you in advance
Re: Media's conflict when copying entries
Thank you for your issue report. The problem is now fixed in aimeos/ai-admin-jqadm:2021.10.x-dev.
You need to update to 2021.10 LTS because 2021.07.x isn't supported any more.
You need to update to 2021.10 LTS because 2021.07.x isn't supported any more.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star