Merge branch 'ent-9873-14572-imagenes-personalizadas-en-elementos-servicios-de-consola-visual-desaparecen' into 'develop'
Ent 9873 14572 imagenes personalizadas en elementos servicios de consola visual desaparecen See merge request artica/pandorafms!5301
This commit is contained in:
commit
dab898aaa0
|
@ -2296,6 +2296,7 @@ class Item extends CachedModel
|
|||
false
|
||||
);
|
||||
|
||||
$aux_images = $all_images;
|
||||
foreach ($all_images as $image_file) {
|
||||
$image_file = substr($image_file, 0, (strlen($image_file) - 4));
|
||||
|
||||
|
@ -2311,7 +2312,11 @@ class Item extends CachedModel
|
|||
continue;
|
||||
}
|
||||
|
||||
$result[$image_file] = $image_file;
|
||||
// Check the 4 images.
|
||||
$array_images = preg_grep('/'.$image_file.'(_ok|_bad|_warning)*\./', $aux_images);
|
||||
if (count($array_images) >= 4) {
|
||||
$result[$image_file] = $image_file;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue