Fix undef issue on valid_read template

This commit is contained in:
Tom Bloor 2017-08-31 14:52:25 +01:00
parent 18992784b2
commit 0159ef91dc

View file

@ -22,7 +22,7 @@
<li class="list-group-item"><input id="town" type="text" class="form-control" placeholder="Town" name="town" value="<%= $valid_org->town %>"></li>
<li class="list-group-item">
<select class="form-control" name="sector">
%= include 'partials/sector_options', selected_sector => $valid_org->sector;
%= include 'partials/sector_options', selected_sector => $valid_org->sector || '';
</select>
</li>
<li class="list-group-item"><input id="postcode" type="text" class="form-control" placeholder="Postcode" name="postcode" value="<%= $valid_org->postcode %>"></li>