[-] BO : fixed bug #PSCFV-3439 part2

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16714 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-08-06 10:14:41 +00:00
parent 0d50493737
commit 04be7149e5
3 changed files with 48 additions and 4 deletions
+2 -2
View File
@@ -1220,12 +1220,12 @@ abstract class ObjectModelCore
*
* @return bool success
*/
public function deleteImage()
public function deleteImage($force_delete = false)
{
if (!$this->id)
return false;
if (!$this->hasMultishopEntries())
if ($force_delete || !$this->hasMultishopEntries())
{
/* Deleting object images and thumbnails (cache) */
if ($this->image_dir)