YetiForceCompany / YetiForce

One of the most innovative CRM systems that supports mainly business processes and allows for customization according to your needs. Be ahead of your competition and implement YetiForce!
https://yetiforce.com
4 stars 3 forks source link

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

Open davide-alghi opened 19 hours ago

davide-alghi commented 19 hours ago

TextParser relatedRecordsList() syntax is

RelatedModuleNameOrRelationId|Columns|Conditions|CustomViewIdOrName|Limit

if CustomViewIdOrName is the custom view's name (not the id), 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