Commit Graph

10 Commits

Author SHA1 Message Date
Jean-Philippe Lang
192263b856 Don't use User.current in TimeEntryImport model but #user instead (#32774).
git-svn-id: http://svn.redmine.org/redmine/trunk@19678 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-04-05 19:28:37 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
efbfc76161 Auto select fields mapping in import based on the internal field name (ex: estimared_hours, fixed_version, spent_on) or field label (Estimated hours, Version, Date) (#22913).
* mappings are case insensitive
* a field is auto mapped only if there is no mapping setting present for that field
* "Current user" default value for User field when the user has permission to log time for other users is override by the auto mapped column

Patch by Haihan Ji, Yuichi HARADA, and Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19524 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-19 14:52:02 +00:00
Go MAEDA
4d341f0f14 Use 'user' as internal field instead of user_id because the column accepts also user login as value, not only the id (#22913).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19523 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-02-19 14:31:39 +00:00
Jean-Philippe Lang
a7ffe39289 Identify time entry user just like issue assignee (#32196).
git-svn-id: http://svn.redmine.org/redmine/trunk@18891 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-02 11:51:53 +00:00
Jean-Philippe Lang
3afd17f83e Allow import time entries for other users (#32196).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@18890 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-02 08:23:35 +00:00
Go MAEDA
8a2e4aa247 Add permission to import time entries (#32196, #28234).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-28 14:02:25 +00:00
Toshi MARUYAMA
c4930a8a2d code cleanup: rubocop: fix Layout/EmptyLines in app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-19 04:30:26 +00:00
Go MAEDA
a7fbb4719a Add missing frozen string literals and copyrights (#31508).
git-svn-id: http://svn.redmine.org/redmine/trunk@18225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-04 06:36:20 +00:00
Go MAEDA
6fd9d9ed73 Import time entries (#28234).
Patch by Gregor Schmidt.


git-svn-id: http://svn.redmine.org/redmine/trunk@18146 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-09 08:05:37 +00:00