2.14.1
-
The
apos.utils.clonePermanent
method no longer turns objects into long arrays of nulls if they happen to have alength
property.lodash
uses thelength
property as an indicator that the object should be treated as an array, but this would be an unrealistic restriction on Apostrophe schema field names. Instead,clonePermanent
now usesArray.isArray
to distinguish true arrays. This fixes a nasty bug when importing content from A1.5 and subsequently editing it. -
When a user is logged in there is an
apos.user
object on the browser side. Due to a bug this was an empty object. It now containstitle
,_id
andusername
properties as intended.