Fix temporary duplicate key issue
authorRichard Fairhurst <richard@systemeD.net>
Wed, 6 Apr 2011 15:53:26 +0000 (16:53 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Wed, 6 Apr 2011 15:53:26 +0000 (16:53 +0100)
net/systemeD/potlatch2/TagGrid.mxml

index adc4982..399de61 100644 (file)
@@ -94,7 +94,7 @@
                private function tagChanged(event:TagEvent):void {
                        var set:Boolean=false;
                        for (var i:uint=0; i<tagDataProvider.length; i++) {
-                               if (tagDataProvider[i].key==event.oldKey) {
+                               if (tagDataProvider[i].key==event.oldKey || tagDataProvider[i].key==event.key) {
                                        if (event.newValue && event.key) {
                                                if (!set) {
                                                        // this entry in the dataProvider has changed