apps/redmine/htdocs/app/models/time_entry_query.rb
# If a filter against a single issue is set, returns its id, otherwise nil.
If a filter against a single issue is set, returns its id, otherwise nil.
If a filter against a single issue is set returns its id otherwise nil .
def filtered_issue_id
    if value_for('issue_id').to_s =~ /\A(\d+)\z/
      $1
    end
  end
def filtered_issue_id if value_for ( 'issue_id' ) . to_s =~ / \A ( \d +) \z / $1 end end
If a filter against a single issue is set, returns its id, otherwise nil.
If a filter against a single issue is set returns its id otherwise nil .