Metadata dates in multi type asset builder


(Chris Horikx) #1

Hi Guys,

 

Think I've found a bug here:

 

Scenario: An asset creator with say two chooseable asset types and metadata schemas applied at the asset builder details screen so that the metadata values can be submitted on asset creation. 

 

Problem: If one of the fields is a metadata date type, there seems not to be an asset type identifier on the name or of the field, which means that for both assets they id and name are identical.

 

All other metadata fields will be something like name="metadata_field_select_[asset id goes here]_pdf_file_[field name]". On the date fields they are name-metadata_field_date_[asset id goes here]_datetimevalue_d". Note that name and id are the same in both cases.

 

This means that on the page that there are two fields with the same id which fails HTML validation (and therefore accessibility). I haven't tested submitting with these replicated fields yet, but I suspect the result will provide intermittent results.

 

Chris


(Chris Horikx) #2

I have had a look through a few other metadata types and it seems to only be an issue with the date


(Anthony Ponomarenko) #3

Hi Chris,

 

What version of Matrix are you experiencing this in?


(Chris Horikx) #4

5.3.1.1


(Anthony Ponomarenko) #5

So have you set it up with Customised Create Forms?


(Anthony Ponomarenko) #6

Hey Chris,

 

I can replicate your issue and have logged it as a bug.

 

If you are a client you can access the report here: https://squizmap.squiz.net/matrix/9377

 

If not keep an eye out for the fix in an upcoming release. I cant confirm which though...


(Chris Horikx) #7

Thanks Anthony