Index: branches/5.0.x/core/units/general/helpers/image_helper.php =================================================================== diff -u -r12117 -r12278 --- branches/5.0.x/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 12117) +++ branches/5.0.x/core/units/general/helpers/image_helper.php (.../image_helper.php) (revision 12278) @@ -1,6 +1,6 @@ STATUS_ACTIVE, 'DefaultImg' => $i ? 0 : 1, // first image is primary, others not primary 'ThumbPath' => $image_src, + 'Priority' => ($i == 0)? 0 : $i * (-1), ); $this->_saveCustomFields($object, $fields_hash, $i);