Browse Source

Fixed error where we were trying to replace line breaks in the template rather than the rendered communication subject.

master
AndrewIngram 14 years ago
parent
commit
85a50d4fa8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      oscar/apps/customer/abstract_models.py

+ 1
- 1
oscar/apps/customer/abstract_models.py View File

@@ -87,7 +87,7 @@ class AbstractCommunicationEventType(models.Model):
87 87
             messages[name] = template.render(Context(ctx)) if template else ''
88 88
 
89 89
         # Ensure the email subject doesn't contain any newlines
90
-        templates['subject'] = templates['subject'].replace("\n", "")
90
+        messages['subject'] = messages['subject'].replace("\n", "")
91 91
 
92 92
         return messages
93 93
         

Loading…
Cancel
Save