Fix tag repeat bug
authorRichard Fairhurst <richard@systemeD.net>
Tue, 5 Apr 2011 09:06:04 +0000 (10:06 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Tue, 5 Apr 2011 09:06:04 +0000 (10:06 +0100)
net/systemeD/potlatch2/TagGrid.mxml

index 64598fa..adc4982 100644 (file)
                                        }
                                }
                        }
-                       if (!set && event.newValue) tagDataProvider.addItem( { key:event.key, value:event.newValue } );
+                       if (!set && event.newValue) tagDataProvider.addItem(new Tag(event.entity,event.key,event.newValue));
 
                        // tell Flex to redraw the grid because we've changed a tag
                        invalidateList();