Fallback to empty string for email preview recipient, if current user has no address
This commit is contained in:
parent
b3bd2ba3b5
commit
c4b4b866ff
|
@ -25,6 +25,6 @@ ${parent.body()}
|
||||||
<a id="preview-html" class="button" href="${url('email.preview')}?key=${instance['key']}&type=html" target="_blank">Preview HTML</a>
|
<a id="preview-html" class="button" href="${url('email.preview')}?key=${instance['key']}&type=html" target="_blank">Preview HTML</a>
|
||||||
<a id="preview-txt" class="button" href="${url('email.preview')}?key=${instance['key']}&type=txt" target="_blank">Preview TXT</a>
|
<a id="preview-txt" class="button" href="${url('email.preview')}?key=${instance['key']}&type=txt" target="_blank">Preview TXT</a>
|
||||||
or
|
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" />
|
<input type="submit" name="send_${instance['key']}" value="Send Preview Email" />
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue