civicrm/civicrm-core — pull request #2965 by generalredneck (2014-04-27 22:59:33+00:00)
Title: CRM-14135: Making Custom Membership Fields in profiles apply to all purchased Memberships.

The case here is that you can actually purchase multiple memberships using price sets. What was happening was happening is that only the last membership would actually get the custom field value while the others you purchased wouldn't.

Since we don't want to make a giant architecture change in how the form works and ask for a custom profile field for memberships for each membership, it seems a compromise of applying the single value to all memberships purchased will work and satisfy the use case in CRM-14135.