diff MoinMoin/themes/__init__.py @ 2482:f50f7d1cbf14

Fixes non-display of delete, destroy, other item actions, variable value was being overwritten
author sharky93 <rishabhr123@gmail.com>
date Sat, 14 Sep 2013 18:15:37 +0530
parents a17476268e7a
children d29bfd06cd8c
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sat Sep 14 17:49:28 2013 +0530
+++ b/MoinMoin/themes/__init__.py	Sat Sep 14 18:15:37 2013 +0530
@@ -169,12 +169,12 @@
                                 if current_sub not in app.cfg.supplementation_item_names:
                                     supp_name = '%s/%s' % (item_name, sub_item_name)
                                     if flaskg.storage.has_item(supp_name) or flaskg.user.may.write(supp_name):
-                                        exists = self.storage.has_item(supp_name)
+                                        subitem_exists = self.storage.has_item(supp_name)
                                         href = url_for('frontend.show_item', item_name=supp_name)
                                         label = _(sub_item_name)
                                         title = None
 
-                                        item_navigation.append((endpoint, href, iconcls, label, title, exists))
+                                        item_navigation.append((endpoint, href, iconcls, label, title, subitem_exists))
                         else:
                             href = url_for(endpoint, item_name=item_name)   
                             item_navigation.append((endpoint, href, iconcls, label, title, True))