Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/modules/default/handlers/receipt/receipt_handler.py b/modules/default/handlers/receipt/receipt_handler.py
- index 6dd282f..da471b6 100644
- --- a/modules/default/handlers/receipt/receipt_handler.py
- +++ b/modules/default/handlers/receipt/receipt_handler.py
- @@ -9,6 +9,7 @@ from config.hib import (
- from libraries import pubnub
- from libraries.money import moneyfmt, CurrencyConstants
- from libraries.system import PRODUCTION
- +from libraries.utils.strings import convert_basestring_to_string
- from models.Product import Product
- from models.Tab import Tab
- from modules.default.handlers.base import BaseHandler
- @@ -40,7 +41,8 @@ class ReceiptPageHandler(BaseHandler):
- @ssl_required
- def get(self):
- template_vars = self._set_template_vars() or {} # Default to an empty dict, so users won't see a blank page when there are no template_vars
- - self._render(template_vars)
- + if template_vars:
- + self._render(template_vars)
- def _set_template_vars(self):
- template_vars = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement