Field

Ticket #86 (closed defect: fixed)

Opened 4 months ago

Last modified 4 months ago

Storing references to elements in other sheets causes widespread chaos

Reported by: marc Assigned to: marc
Priority: blocker Milestone:
Component: ai Version:
Keywords: Cc: mikey

Description (Last modified by mikey)

With the introduction of things like allMarked() it's become easy to tie yourself in a knot (#84)

_self.banana = anElementInAnotherSheet

will try to persist a reference to an element that's in another sheet, which will cause that sheet to get persisted inside this sheet. It probably works quite well, but this is certainly not what you were expecting.

Change History

08/01/2008 07:27:47 AM changed by marc

  • cc set to mikey.
  • owner set to marc.
  • status changed from new to assigned.

Mikey: could you try to confirm (and close) that your previous example doesn't fail with changeset:140

08/01/2008 07:28:16 AM changed by marc

(if you select save from the menu you'll actually get a nice warning when this happens)

08/01/2008 07:46:16 AM changed by mikey

  • status changed from assigned to closed.
  • description changed.
  • type set to defect.
  • component set to ai.
  • priority set to blocker.
  • resolution set to fixed.

When trying to replicate the problem, I failed..so it's fixed. I even get the nice warning like you said when I save from the menu. And the fix you said from earlier works great as well. And it all started with me saying I wanted to get marked elements from other sheets...