Menu

#20 Size modifiers only half working

open
nobody
None
5
2004-03-16
2004-03-16
No

This is what I observed on my installation of mercator.

Under config 3, ring up a small latte, it should go in OK.
Try ringing up a vente latte next, it will probably come
up as a small again. The same happens with any
size/drink combo.

The cause? Seems to be in EjItem. The engage function
doesn't re-read the item details if the item record has
been initialzed already.

The fix? I've chopped the "if (itemRecord() ==null)"
(something like that) condition out and it seems to work
fine. I don't see that saving a second DB lookup on an
item is worth trying to avoid it. So probably best to re-
look it up each time.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB