concrete5/concrete5 — pull request #189 by jordanlev (2011-11-11 06:12:41+00:00)
Title: Made some collection_type model functions more robust

1) populateAvailableAttributeKeys() function now resets the akID array before filling it (to avoid it getting duplicate ids if the function is called more than once).
2) Made the isAvailableCollectionTypeAttribute() more robust -- will call populateAvailableAttributeKeys() if needed, and now accepts both attributeKey objects and attributeKey ID's