From: Richard Fairhurst Date: Tue, 5 Apr 2011 09:06:04 +0000 (+0100) Subject: Fix tag repeat bug X-Git-Tag: 2.1~11 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/abe766cbea3988dd9bdb4f3ff7c823ce7d53f5de Fix tag repeat bug --- diff --git a/net/systemeD/potlatch2/TagGrid.mxml b/net/systemeD/potlatch2/TagGrid.mxml index 64598fa6..adc4982f 100644 --- a/net/systemeD/potlatch2/TagGrid.mxml +++ b/net/systemeD/potlatch2/TagGrid.mxml @@ -111,7 +111,7 @@ } } } - 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();