delete empty submanager

This commit is contained in:
Harry Bomrah 2016-09-02 10:45:05 +08:00
parent 2f0f080687
commit edb7f2915c
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@
}
</style>
<% sub_managers = @module_app.sub_managers %>
<%
sub_managers = @module_app.sub_managers
sub_managers.delete(nil)
%>
<div id="notification">Click on Submit to save the changes.</div>
<%= form_for @setting, url: (@setting.new_record? ? admin_announcement_createsettings_path : admin_announcement_updatesettings_path), html: {class: "form-horizontal main-forms"} do |f| %>
<div class="input-area">