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 64598fa6391d8c082d2b222681f0191549fcad4a..adc4982fa6b2acd32d8827c36f39dcf36acdc7c9 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();