Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YF7.0.2] TextParser relatedRecordsList(): "order by" skipped #65

Open
davide-alghi opened this issue Nov 25, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@davide-alghi
Copy link

davide-alghi commented Nov 25, 2024

TextParser relatedRecordsList() syntax is

RelatedModuleNameOrRelationId|Columns|Conditions|CustomViewIdOrName|Limit

if CustomViewIdOrName is the custom view's id (not the name), variable $cvId is not set, so the block

		if ($cvId && ($customViewModel = \CustomView_Record_Model::getInstanceById($cvId)) && ($orderBy = $customViewModel->getSortOrderBy())) {
			$relationListView->set('orderby', $orderBy);
		}

is skipped

@davide-alghi
Copy link
Author

I was wrong... the problem is when using the view ID... I corrected my post above

@rskrzypczak rskrzypczak added the bug Something isn't working label Nov 29, 2024
@rskrzypczak rskrzypczak self-assigned this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants