Skip to content
Snippets Groups Projects
Commit 3800d240 authored by Tiberiu Buzas's avatar Tiberiu Buzas
Browse files

Removed changes

parent 47a4772b
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [4.0.2] - UNRELEASED
### Added
- a new sorting parameter to the getContextDataViaReadEntity function in ContextUtils_lib, determining whether data is sorted.
## [4.0.1]
### Changed
......
......@@ -352,14 +352,11 @@ ContextUtils.getTitleByContext = function(pContextId, pRowId, pProvider, pParams
* @param {object} [pFilterObj] - prepeared Filter Object
* @param {string[]} [pContactId] - Array of all the Contactids you want to search through
* @param {boolean} [pIsCount] - decides if data count is returned
* @param {boolean} [pIsSorted] - decides if data is sorted
* @return {string[][] | number} An Array of Fields (["#UID", "#TITLE", "#MAPPING", "#CONTENTDESCRIPTION", "#CONTENTTITLE", CONNECTIONFIELD, "DATE_NEW"]) for a certain Context or the count of datasets
* @throws {Error} When mandatory entity fields are missing
*/
ContextUtils.getContextDataViaReadEntity = function(pContextId, pContextConfig, pFilterObj, pContactId, pIsCount, pIsSorted)
{
let recordSorting = pIsSorted ? entities.RECORD_SORTING_FULL : entities.RECORD_SORTING_NONE;
ContextUtils.getContextDataViaReadEntity = function(pContextId, pContextConfig, pFilterObj, pContactId, pIsCount)
{
let connectionField = "CONTACT_ID";
if(pContextConfig.connectionField)
{
......@@ -374,7 +371,6 @@ ContextUtils.getContextDataViaReadEntity = function(pContextId, pContextConfig,
let subConf = entities.createConfigForLoadingRows()
.entity(ContextUtils.getEntity(pContextConfig.subContext))
.fields([pContextConfig.childField])
.applyRecordSorting(recordSorting)
.filter(JSON.stringify(prefilter.filter));
let subRes = entities.getRows(subConf);
......@@ -398,8 +394,7 @@ ContextUtils.getContextDataViaReadEntity = function(pContextId, pContextConfig,
let conf = entities.createConfigForLoadingRows()
.entity(ContextUtils.getEntity(pContextId))
.fields(fields)
.applyRecordSorting(recordSorting);
.fields(fields);
if(pFilterObj)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment