rez_core 3.1.66 → 3.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "3.1.66",
3
+ "version": "3.1.67",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -552,10 +552,7 @@ export class EntityDynamicService {
552
552
 
553
553
  // Convert boolean columns (1/0) into true/false
554
554
  for (const attr of validAttributes) {
555
- if (attr.is_hidden) {
556
- delete row[attr.attribute_key];
557
- continue;
558
- } else if (
555
+ if (
559
556
  attr.db_datatype == 'boolean' &&
560
557
  row[attr.attribute_key] !== undefined
561
558
  ) {
@@ -617,7 +614,8 @@ export class EntityDynamicService {
617
614
  const result = await this.dataSource.query(
618
615
  `SELECT attribute_key, db_datatype, element_type, is_hidden
619
616
  FROM cr_attribute_master
620
- WHERE mapped_entity_type = ? AND organization_id = ?`,
617
+ WHERE mapped_entity_type = ? AND organization_id = ?
618
+ and (is_hidden IS NULL OR is_hidden = 0) -- Exclude hidden attributes`,
621
619
  [entityType, organizationId],
622
620
  );
623
621