@pagination = Api::Pagination.new(params)
@projects=Project.find(:all,
+ :select => 'distinct(projects.id),projects.kee,projects.name',
:include => ['user_roles','group_roles'],
:joins => joins,
:conditions => [conditions_sql, conditions_values],
:order => 'projects.name',
:offset => @pagination.offset,
:limit => @pagination.limit)
- @pagination.count=Project.count(:joins => joins, :conditions => [conditions_sql, conditions_values])
+ @pagination.count=Project.count(
+ :select => 'distinct(projects.id)',
+ :joins => joins,
+ :conditions => [conditions_sql, conditions_values])
end
def edit_users
<form action="<%= url_for :action => 'projects', :qualifier => @qualifier -%>" method="GET">
<input type="hidden" name="qualifier" value="<%= @qualifier -%>"/>
<input type="text" name="q" value="<%= params[:q] -%>" id="search_text"/>
- <input type="submit" value="Search" id="search_submit"/>
+ <input type="submit" value="<%= message('search_verb') -%>" id="search_submit"/>
</form>
</th>
<th>Role: Administrators</th>