临时措施:即使用户没有填写单位,页面也可以正常打开,而不是报错
This commit is contained in:
parent
4e567afd0a
commit
775774ad63
|
@ -166,7 +166,11 @@
|
||||||
<% unless @user.user_extensions.nil? %>
|
<% unless @user.user_extensions.nil? %>
|
||||||
<% unless @user.user_extensions.identity == 2 %>
|
<% unless @user.user_extensions.identity == 2 %>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding-left: 5px" width="70px"><%= l(:field_occupation) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px"><%= @user.user_extensions.school.name %></td>
|
<td style="padding-left: 5px" width="70px"><%= l(:field_occupation) %>:</td><td class="font_lighter_sidebar" style="padding-left: 0px" width="170px">
|
||||||
|
<% unless @user.user_extensions.school.nil? %>
|
||||||
|
<%= @user.user_extensions.school.name %>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue