Index: branches/5.2.x/core/units/promo_blocks/promo_block_eh.php =================================================================== diff -u -N -r15165 -r15373 --- branches/5.2.x/core/units/promo_blocks/promo_block_eh.php (.../promo_block_eh.php) (revision 15165) +++ branches/5.2.x/core/units/promo_blocks/promo_block_eh.php (.../promo_block_eh.php) (revision 15373) @@ -1,6 +1,6 @@ 'kUploadFormatter', 'upload_dir' => IMAGES_PATH . 'promo_blocks/', 'multiple' => 1, 'thumb_format' => 'resize:100x100', 'file_types' => '*.jpg;*.gif;*.png', 'files_description' => '!la_hint_ImageFiles!', - 'required' => 1, 'not_null' => 1, 'default' => '', + 'not_null' => 1, 'default' => '', ); // get active languages $sql = 'SELECT LanguageId FROM ' . TABLE_PREFIX . 'Languages'; $languages = $this->Conn->GetCol($sql); - foreach ($languages AS $lang_id) { + foreach ($languages as $lang_id) { $fields['l' . $lang_id . '_Image'] = $a_image; } + $fields['l' . $this->Application->GetDefaultLanguageId() . '_Image']['required'] = 1; + $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); } }