Index: branches/5.2.x/core/units/custom_data/custom_data_event_handler.php =================================================================== diff -u -N -r14628 -r14811 --- branches/5.2.x/core/units/custom_data/custom_data_event_handler.php (.../custom_data_event_handler.php) (revision 14628) +++ branches/5.2.x/core/units/custom_data/custom_data_event_handler.php (.../custom_data_event_handler.php) (revision 14811) @@ -1,6 +1,6 @@ Application->TableFound('CustomField')) { + if (defined('IS_INSTALL') && IS_INSTALL && !$this->Application->TableFound('CustomField', true)) { return false; } @@ -141,7 +141,7 @@ $fields['cust_' . $custom_id] = $field_options; $fields['cust_' . $custom_id]['force_primary'] = !$custom_params['MultiLingual']; } - + $this->Application->setUnitOption($event->Prefix, 'Fields', $fields); }