Skip to content

Commit

Permalink
Merge pull request #1682 from NapiformGoose/2.1/bug/removeTypeCollection
Browse files Browse the repository at this point in the history
[#1005593] Remove attribute type Collection
  • Loading branch information
stasguryev committed Dec 8, 2021
2 parents 699214d + 45851e7 commit b770362
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 16 deletions.
4 changes: 2 additions & 2 deletions demo/app/cases/editors/ContextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -133,7 +133,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down
4 changes: 2 additions & 2 deletions demo/app/cases/editors/MultiEditorEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -134,7 +134,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down
4 changes: 2 additions & 2 deletions demo/app/cases/list/compactGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -223,7 +223,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down
4 changes: 2 additions & 2 deletions demo/app/cases/list/complexGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -368,7 +368,7 @@ export default function() {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down
2 changes: 0 additions & 2 deletions src/Meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const meta = {
string: 'font',
boolean: 'check-square',
table: 'newspaper',
collection: 'newspaper',
subform: 'list-alt',
undefined: 'dot-circle',
task: 'tasks',
Expand Down Expand Up @@ -73,7 +72,6 @@ export const objectPropertyTypes = {
DOCUMENT: 'Document',
IMAGE: 'Image',
INSTANCE: 'Instance',
COLLECTION: 'Collection',
ENUM: 'Enum',
ROLE: 'Role',
ORGANIZATION_UNIT: 'OrganizationalUnit',
Expand Down
2 changes: 0 additions & 2 deletions src/list/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const columnTypes = {
reference: 'InstanceProperty',
enumerable: 'EnumProperty',
document: 'DocumentProperty',
collection: 'Collection',
id: 'id'
};

Expand All @@ -45,7 +44,6 @@ export const columnType = columnTypes;
export const columnWidthByType = {
[objectPropertyTypes.ACCOUNT]: 120,
[objectPropertyTypes.BOOLEAN]: 120,
[objectPropertyTypes.COLLECTION]: 120,
[objectPropertyTypes.DATETIME]: 120,
[objectPropertyTypes.DECIMAL]: 120,
[objectPropertyTypes.DOCUMENT]: 120,
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/form/ComplexEditor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const context = {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -122,7 +122,7 @@ const context = {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down
4 changes: 2 additions & 2 deletions tests/specs/form/ContextEditor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const context = {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down Expand Up @@ -122,7 +122,7 @@ const context = {
},
{
instanceTypeId: 'oa.1',
type: 'Collection',
type: 'Instance',
format: 'Undefined',
name: 'coll',
displayAttribute: false,
Expand Down

0 comments on commit b770362

Please sign in to comment.