Fix temporary duplicate key issue
[potlatch2.git] / net / systemeD / potlatch2 / TagGrid.mxml
index adc4982fa6b2acd32d8827c36f39dcf36acdc7c9..399de61d582847cf25dfa2a925200a121cdb511c 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