Skip to content

Commit

Permalink
Enabling checkHashCodes on object repetitions to ensure deletes are h…
Browse files Browse the repository at this point in the history
…andled correctly. Without this, if an object is deleted and the object on the row below cannot be deleted, the latter will erroneously be marked as deleteable in the UI, once the deleted object has been removed from the repetition.

Enabling checkHashCodes globally causes attribute repetitions to break.
  • Loading branch information
fbarthez committed Oct 10, 2013
1 parent 6c85da9 commit 443f14a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ ObjectsRepetition: WORepetition {
item = d2wContext.object;
list = ^displayGroup.displayedObjects;
index = rowIndex;
checkHashCodes = true;
eoSupport = true;
}

LeftAction: WOSwitchComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ ObjectsRepetition: WORepetition {
item = d2wContext.object;
list = ^displayGroup.displayedObjects;
index = rowIndex;
checkHashCodes = true;
eoSupport = true;
}

LeftAction: WOSwitchComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ ObjectsRepetition: WORepetition {
item = d2wContext.object;
list = ^displayGroup.displayedObjects;
index = rowIndex;
checkHashCodes = true;
eoSupport = true;
}

LeftAction: WOSwitchComponent {
Expand Down

0 comments on commit 443f14a

Please sign in to comment.