Not a bug but a bit a strange thing: The field_mappings in #__content_types are stored like this:
{"common":[{"core_content_item_id":"id, ...}], "special": [{"fulltext":"fulltext"}]}
Which means it translates into this when json_decoded:
$field_mappings->common[0]->core_content_item_id
$field_mappings->common[0]->...
$field_mappings->special[0]->fulltext
Imho the array part is unneeded. I don't think there will be more than one "common" or "special" mappings within one entry.
So the JSON should read like this instead:
{"common":{"core_content_item_id":"id, ...}, "special": {"fulltext":"fulltext"}}
And it would need changes where the field mapping is read.
I could make a PR for this but would love to get some feedback first. Also it's quite close to release, so not sure if it makes sense to change that or just leave it as is. It's not like something is broken, it's more a design question.
Am Dienstag, 16. April 2013 13:53:00 UTC+2 schrieb Bakual: