Revision 53548b18
Von Cem Aydin vor 1 Tag hinzugefügt
SL/BackgroundJob/ShopPartMassCreate.pm | ||
---|---|---|
138 | 138 |
|
139 | 139 |
my $fileobj; |
140 | 140 |
if (exists $images_by_names{$image_name}) { |
141 |
# I tried updating the file, but it didn't work right away |
|
142 |
# so instead I delete the file and create a new one |
|
143 |
# (this is also the way it is done in the UI, there's only a delete button, |
|
144 |
# no update button) |
|
145 |
$images_by_names{$image_name}->delete; |
|
141 |
# I tried updating or deleting the file, but that didn't work |
|
142 |
# so for now we'll just skip the image if an image with the same name already exists |
|
143 |
# (atm there doesn't seem to be a mechanism in place to update or delete the files properly) |
|
144 |
next; |
|
146 | 145 |
} |
147 | 146 |
|
148 | 147 |
my $image_path = $images_import_path . $image_name; |
Auch abrufbar als: Unified diff
Backgroundjob: ShopPartMassCreate Existierende Bilder überspringen
Löschen der Bilder funktionierte so nicht, die Dateien bleiben im
Dateisystem erhalten aber der Datenbank Eintrag wird gelöscht. Dies
müsste im File Management System angeschaut werden. Für den Moment
überspringe ich die Dateien hier.