Fallback to empty string for email preview recipient, if current user has no address

This commit is contained in:
Lance Edgar 2016-08-04 13:19:55 -05:00
parent b3bd2ba3b5
commit c4b4b866ff

View file

@ -25,6 +25,6 @@ ${parent.body()}
<a id="preview-html" class="button" href="${url('email.preview')}?key=${instance['key']}&amp;type=html" target="_blank">Preview HTML</a>
<a id="preview-txt" class="button" href="${url('email.preview')}?key=${instance['key']}&amp;type=txt" target="_blank">Preview TXT</a>
or
<input type="text" name="recipient" value="${request.user.email_address}" />
<input type="text" name="recipient" value="${request.user.email_address or ''}" />
<input type="submit" name="send_${instance['key']}" value="Send Preview Email" />
</form>