Hi all, just tested a simple JS API createAsset function which works in 4.16-18 in Matrix 5.1.2 (eval)
The issue is that it does not set the comment [extra] attribute.
j.createAsset({"parent_id":parent, "type_code":"comment", "asset_name":postName,
“link_type”:2,
“link_value”:“test”,
“sort_order”:0,
“is_dependent”:0,
“is_exclusive”:0,
“extra_attributes”:1,
“attributes”:“comment=Testing 123”,
“dataCallback”: function(data){
console.log(data);
}
});
The comment attribute then does not appear on the details screen of the created asset in the backend until the locks are acquired - it can then be populated. The API asset is configured to create, and set extra attributes on create.
There is no trouble setting metadata on the created asset with the API, seems to just be a problem with the extra attributes variables.
OS: Mac OSX 10.9.4
Browsers Tested: Chrome, Safari, Firefox
Matrix version 5.1.2
Thanks :-)