mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-22 08:21:14 +00:00
Use exists? instead of count (#24839).
Patch by Vincent Robert and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16211 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
62c7d11427
commit
c7f03c00a9
@ -143,7 +143,7 @@ class Repository::Git < Repository
|
|||||||
return if prev_db_heads.sort == repo_heads.sort
|
return if prev_db_heads.sort == repo_heads.sort
|
||||||
|
|
||||||
h["db_consistent"] ||= {}
|
h["db_consistent"] ||= {}
|
||||||
if changesets.count == 0
|
if ! changesets.exists?
|
||||||
h["db_consistent"]["ordering"] = 1
|
h["db_consistent"]["ordering"] = 1
|
||||||
merge_extra_info(h)
|
merge_extra_info(h)
|
||||||
self.save
|
self.save
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
<tr class="<%= cycle("odd", "even") %>">
|
<tr class="<%= cycle("odd", "even") %>">
|
||||||
<td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
|
<td class="name"><%= link_to tracker.name, edit_tracker_path(tracker) %></td>
|
||||||
<td>
|
<td>
|
||||||
<% unless tracker.workflow_rules.count > 0 %>
|
<% unless tracker.workflow_rules.exists? %>
|
||||||
<span class="icon icon-warning">
|
<span class="icon icon-warning">
|
||||||
<%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
|
<%= l(:text_tracker_no_workflow) %> (<%= link_to l(:button_edit), workflows_edit_path(:tracker_id => tracker) %>)
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user