Fix bug.
This commit is contained in:
parent
59b02e40e0
commit
0e6c8aa074
|
@ -1,6 +1,7 @@
|
||||||
<% active_module = @custom_data_field[:bind_module_app] rescue nil %>
|
<% active_module = @custom_data_field[:bind_module_app] rescue nil %>
|
||||||
<% active_uid = @custom_data_field[:bind_uid] rescue nil %>
|
<% active_uid = @custom_data_field[:bind_uid] rescue nil %>
|
||||||
<% active_module = @custom_configs.first.module if active_module.nil? %>
|
<% active_module = @custom_configs.first.module rescue nil if active_module.nil? %>
|
||||||
|
<% if @custom_configs.length != 0 %>
|
||||||
<div class="control-group input-content">
|
<div class="control-group input-content">
|
||||||
<label class="control-label muted" for="custom_bind_module_app"><%=t("custom_announcement.use_module")%> :</label>
|
<label class="control-label muted" for="custom_bind_module_app"><%=t("custom_announcement.use_module")%> :</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
@ -37,3 +38,4 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
<% end %>
|
|
@ -1,6 +1,7 @@
|
||||||
<% active_module = @custom_data_field[:bind_module_app] rescue nil %>
|
<% active_module = @custom_data_field[:bind_module_app] rescue nil %>
|
||||||
<% active_uid = @custom_data_field[:bind_uid] rescue nil %>
|
<% active_uid = @custom_data_field[:bind_uid] rescue nil %>
|
||||||
<% active_module = @custom_configs.first.module if active_module.nil? %>
|
<% active_module = @custom_configs.first.module rescue nil if active_module.nil? %>
|
||||||
|
<% if @custom_configs.length != 0%>
|
||||||
<div class="control-group input-content">
|
<div class="control-group input-content">
|
||||||
<label class="control-label muted" for="custom_bind_module_app"><%=t("custom_gallery.use_module")%> :</label>
|
<label class="control-label muted" for="custom_bind_module_app"><%=t("custom_gallery.use_module")%> :</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
@ -37,3 +38,4 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
<% end %>
|
Loading…
Reference in New Issue