bug fix: make sure order item quantity changes are perstisten
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3297 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
0efaa8479d
commit
de820de330
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class OrderItem(Track):
|
|||
self.getParent().context.removeTrack(self)
|
||||
|
||||
def modify(self, quantity, **kw):
|
||||
self.data['quantity'] = quantity
|
||||
self.update(dict(quantity=quantity))
|
||||
return self
|
||||
|
||||
def setOrder(self, order):
|
||||
|
|
|
@ -86,7 +86,7 @@ class Track(Persistent):
|
|||
self.timeStamp = getTimeStamp()
|
||||
data = self.data
|
||||
data.update(newData)
|
||||
self.data = data
|
||||
self.data = data # record change
|
||||
|
||||
def __repr__(self):
|
||||
md = self.metadata
|
||||
|
|
Loading…
Add table
Reference in a new issue