@optimiser/common 1.0.270 → 1.0.271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utility.js +3 -1
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -1801,7 +1801,9 @@ function BuildGridFieldProjection(project, field, group) {
|
|
|
1801
1801
|
project[alias] = 1;
|
|
1802
1802
|
if (field.Schema.LookupObject) {
|
|
1803
1803
|
for (var i = 0; i < field.Schema.LookupFields.length; i++) {
|
|
1804
|
-
searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], ""] });
|
|
1804
|
+
//searchConcatArry.push({ "$ifNull": ['$' + alias + '.' + field.Schema.LookupFields[i], ""] });
|
|
1805
|
+
// added by Mohan, make int to string and concat
|
|
1806
|
+
searchConcatArry.push({ "$ifNull": [{ $toString: '$' + alias + '.' + field.Schema.LookupFields[i] }, ""] });
|
|
1805
1807
|
if (i < field.Schema.LookupFields.length - 1) {
|
|
1806
1808
|
searchConcatArry.push(" ");
|
|
1807
1809
|
}
|