follow stylesheet URL change if SavedObject name found
authorRichard Fairhurst <richard@systemed.net>
Sat, 29 Jan 2011 11:33:02 +0000 (11:33 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sat, 29 Jan 2011 11:33:02 +0000 (11:33 +0000)
net/systemeD/potlatch2/collections/Stylesheets.as

index b399b6d..cc6db63 100644 (file)
@@ -43,7 +43,8 @@ package net.systemeD.potlatch2.collections {
                                        obj[set.child(a).name()]=set.child(a);
                                }
                 collection.push(obj);
-                               if (obj.url==saved_url || (obj.name==saved_name && obj.name!='Custom')) { isInMenu=true; }
+                               if (obj.url==saved_url) { isInMenu=true; }
+                               else if (obj.name==saved_name && obj.name!='Custom') { isInMenu=true; saved_url=obj.url; }
                        }
                        if (saved_url && !isInMenu) { collection.push({ name:saved_name, url:saved_url }); }