From d33994ce0f9d899f847817e01227201742821368 Mon Sep 17 00:00:00 2001 From: Adam Cooke Date: Fri, 12 May 2017 17:06:35 +0100 Subject: [PATCH] fixes bug with IP rules list closes #136 --- app/views/ip_pool_rules/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/ip_pool_rules/index.html.haml b/app/views/ip_pool_rules/index.html.haml index 636c366..afa4c87 100644 --- a/app/views/ip_pool_rules/index.html.haml +++ b/app/views/ip_pool_rules/index.html.haml @@ -60,6 +60,6 @@ %dl.ipPoolRuleList__condition %dt Will be sent using: %dd= ip_pool_rule.ip_pool.name - - if @server.ip_pool + - if @server && @server.ip_pool %p.ipPoolRuleListDefault.u-margin All mail that doesn't match a rule above will be sent using #{@server.ip_pool.name}. %p.u-center= link_to "Add another rule", [:new, organization, @server, :ip_pool_rule], :class => "button button--positive"