We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca38092 commit ad6b3c5Copy full SHA for ad6b3c5
app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Edit.php
@@ -261,13 +261,15 @@ public function getForm()
261
}
262
263
/**
264
- * Return return template name for JS
265
- *
266
* @return string
267
*/
268
public function getJsTemplateName()
269
{
270
- return addcslashes($this->escapeHtml($this->getModel()->getTemplateCode()), "\"\r\n\\");
+ $templateCode = $this->getModel()->getTemplateCode();
+ if ($templateCode === null) {
+ return '';
271
+ }
272
+ return addcslashes($this->escapeHtml($templateCode), "\"\r\n\\");
273
274
275
0 commit comments