Skip to content

redmine 4.x support#3

Open
localdotcom wants to merge 3 commits intomasterfrom
update/redmine-4.x
Open

redmine 4.x support#3
localdotcom wants to merge 3 commits intomasterfrom
update/redmine-4.x

Conversation

@localdotcom
Copy link

No description provided.

Copy link

@Riki4321 Riki4321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@localdotcom нужно внимательно просмотреть дифф. я оставил комменты - там вырезано то, что делалось специально для warecorp когда-то.
сс @hronix

projects = Project.order('name ASC')
unless User.current.admin?
projects = projects.where(Project.visible_condition(User.current))
if User.current.admin?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А для чего было менять эту конструкцию?
она делает ровно то же самое, что и раньше, только до этого она была написала в Ruby-стиле, т.е. более корректно.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а, понял, это видимо было взято из оригинального плагина, т.к. изменение конструкции было сделано нами тут: a4ed005

query = CGI.unescape({ :timesheet => timesheet.to_param }.to_query)
form_params = query.split("&").map {|pair| pair.split("=")}
button_to('CSV',
link_to('CSV',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это изменение было сделано специально для Warecorp когда-то, полагаю, мы не хотим от него отказываться.
59043d1

include ActiveModel::Conversion
attr_accessor :date_from, :date_to, :projects, :activities, :users, :groups, :trackers,
:allowed_projects, :period, :period_type, :include_archived
:allowed_projects, :period, :period_type

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это изменение было сделано специально для Warecorp когда-то, полагаю, мы не хотим от него отказываться: см. коммит
a4ed005

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments