found a bug while runing test case WebTest_Contact_InlineFieldsEditTest ...

While editing the inline custom field, the form loads and user inputs values and saves it.

When the user second time edits the custom field inline, the edit form fields loads with no values populated. This minor break was due to CRM-12235 issue fix.

This fix introduces the variable named $cgcount which is used while editing the form for custom fields inline and modified use of $customRecId so that both multi-record fields and single-record fields inline editing handled properly.

Checked this issue, by running WebTest_Contact_InlineFieldsEditTest this test. Also checked with adding new contacts, and adding custom fields to it along with multi-valued custom fields, also with different set of custom fields - all working fine.