Skip to content

[TASK] Allow stdWrap on MM SOLR_RELATION cObject #3408

@b3nkai

Description

@b3nkai

We currently can use a stdWrap on SOLR_RELATION like this:

plugin.tx_solr.index.queue {
	pages {
		myfield_stringM = SOLR_RELATION
		myfield_stringM {
			localField = myfield
			stdWrap.dataWrap = before | after
		}
	}
}

This is working fine for 0,n relation but with n,n (MM) relations, the stdWrap is not applied.

This is due to the fact that getRelatedItemsFromMMTable() method does not call stdWrap() method where getRelatedItemsFromForeignTable() does by calling resolveRelatedValue()

You can test on a MM relation with sys_category for example.

Target versions:

  • 12.0.x/main
  • 11.5.x

Relates: #3152

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions