Skip to content
Browse files

bug fix. Refs #4499

  • Loading branch information...
1 parent e645b29 commit c9256d1c7fb8c279978c6b5c1c665a10c00674b9 Jonas Fiala committed Jun 29, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 ella/newman/media/js/inlines.js
  2. +2 −1 ella/newman/templatetags/newman_frontend_tags.py
View
2 ella/newman/media/js/inlines.js
@@ -108,7 +108,7 @@ var __FormHandler = function () {
return true;
};
- // handles adding of new inline item
+ // handles inline item addition
this.add_inline_item = function (evt) {
};
View
3 ella/newman/templatetags/newman_frontend_tags.py
@@ -54,7 +54,8 @@ def newman_frontend_admin(context):
if obj:
vars['object'] = obj
vars['newman_object_url'] = get_newman_url(obj)
- vars['hitcount'] = HitCount.objects.get(placement=placement.pk)
+ if placement:
+ vars['hitcount'] = HitCount.objects.get(placement=placement.pk)
return vars

0 comments on commit c9256d1

Please sign in to comment.
Something went wrong with that request. Please try again.