AUTHORED_RESOURCE and RESOURCE_DESCRIPTION don't ensure that Hash keys match languages in language-specific subparts

Description

The AUTHORED_RESOURCE and RESOURCE_DESCRIPTION classes currently don't ensure that Hash keys in the attributes 'translations' and 'details' respectively match the languages in language-specific items stored in those sub-parts. This has allowed archetypes to be created with a language on the sub-item such as "es-cl" and a Hash key of "es".

Environment

None

Status

Reporter

Thomas Beale

Labels

None

Components

Affects versions

RM Release 1.0.2

Priority

Minor