civicrm/civicrm-core — pull request #3280 by atif-shaikh (2014-05-16 15:29:06+00:00)
Title: CoreBug Related Changes

The attribute 'addtlPartc' was set based on the total count of 'Additional Profile' counter but on first load the counter value is zero and therefore condition to check IF('Additional Profile') used to break and the flow always continued with the ELSE part.

Therefore checking for the appropriate class name while adding 'Additional Profile'.