Feature #34609 » patch34609-0.diff
| app/helpers/settings_helper.rb | ||
|---|---|---|
|
def parent_issue_dates_options
|
||
|
options = [
|
||
|
[:label_parent_task_attributes_derived, 'derived'],
|
||
|
[:label_parent_task_attributes_partially_derived, 'partially_derived'],
|
||
|
[:label_parent_task_attributes_independent, 'independent']
|
||
|
]
|
||
| app/models/issue.rb | ||
|---|---|---|
|
errors.add :due_date, :greater_than_start_date
|
||
|
end
|
||
|
if dates_partially_derived? && start_date && start_date_changed? && start_date > children.minimum(:start_date)
|
||
|
errors.add :start_date, :later_than_minimum_start_date, :date => format_date(children.minimum(:start_date))
|
||
|
end
|
||
|
if dates_partially_derived? && due_date && due_date_changed? && due_date < children.maximum(:due_date)
|
||
|
errors.add :due_date, :earlier_than_maximum_due_date, :date => format_date(children.maximum(:due_date))
|
||
|
end
|
||
|
if start_date && start_date_changed? && soonest_start && start_date < soonest_start
|
||
|
errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start)
|
||
|
end
|
||
| ... | ... | |
|
!leaf? && Setting.parent_issue_dates == 'derived'
|
||
|
end
|
||
|
def dates_partially_derived?
|
||
|
!leaf? && Setting.parent_issue_dates == 'partially_derived'
|
||
|
end
|
||
|
def priority_derived?
|
||
|
!leaf? && Setting.parent_issue_priority == 'derived'
|
||
|
end
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
if p.dates_partially_derived?
|
||
|
# start/due dates = lowest/highest dates of children or own date
|
||
|
p.start_date = [p.children.minimum(:start_date), p.start_date].compact.min
|
||
|
p.due_date = [p.children.maximum(:due_date),p.due_date].compact.max
|
||
|
if p.start_date && p.due_date && p.due_date < p.start_date
|
||
|
p.start_date, p.due_date = p.due_date, p.start_date
|
||
|
end
|
||
|
end
|
||
|
if p.done_ratio_derived?
|
||
|
# done ratio = average ratio of children weighted with their total estimated hours
|
||
|
unless Issue.use_status_for_done_ratio? && p.status && p.status.default_done_ratio
|
||
| config/locales/de.yml | ||
|---|---|---|
|
circular_dependency: "Diese Beziehung würde eine zyklische Abhängigkeit erzeugen"
|
||
|
cant_link_an_issue_with_a_descendant: "Ein Ticket kann nicht mit einem seiner untergeordneten Tickets verlinkt werden"
|
||
|
earlier_than_minimum_start_date: "kann wegen eines Vorgängertickets nicht vor %{date} liegen"
|
||
|
later_than_minimum_start_date: "kann wegen eines Untertickets nicht nach %{date} liegen"
|
||
|
earlier_than_maximum_due_date: "kann wegen eines Untertickets nicht vor %{date} liegen"
|
||
|
not_a_regexp: "ist kein gültiger regulärer Ausdruck"
|
||
|
open_issue_with_closed_parent: "Ein offenes Ticket kann nicht an ein geschlossenes übergeordnetes Ticket angehängt werden"
|
||
|
must_contain_uppercase: "muss Großbuchstaben (A-Z) enthalten"
|
||
| ... | ... | |
|
field_remote_ip: IP-Adresse
|
||
|
label_parent_task_attributes: Eigenschaften übergeordneter Tickets
|
||
|
label_parent_task_attributes_derived: Abgeleitet von untergeordneten Tickets
|
||
|
label_parent_task_attributes_partially_derived: Teilweise abgeleitet von untergeordneten Tickets
|
||
|
label_parent_task_attributes_independent: Unabhängig von untergeordneten Tickets
|
||
|
label_time_entries_visibility_all: Alle Zeitaufwände
|
||
|
label_time_entries_visibility_own: Nur eigene Aufwände
|
||
| config/locales/en-GB.yml | ||
|---|---|---|
|
circular_dependency: "This relation would create a circular dependency"
|
||
|
cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
|
||
|
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
|
||
|
later_than_minimum_start_date: "cannot be later than %{date} because of child issues"
|
||
|
earlier_than_maximum_due_date: "cannot be earlier than %{date} because of child issues"
|
||
|
not_a_regexp: "is not a valid regular expression"
|
||
|
open_issue_with_closed_parent: "An open issue cannot be attached to a closed parent task"
|
||
|
must_contain_uppercase: "must contain uppercase letters (A-Z)"
|
||
| ... | ... | |
|
field_time_entries_visibility: Time logs visibility
|
||
|
setting_password_max_age: Require password change after
|
||
|
label_parent_task_attributes: Parent tasks attributes
|
||
|
label_parent_task_attributes_partially_derived: Partially calculated from subtasks
|
||
|
label_parent_task_attributes_derived: Calculated from subtasks
|
||
|
label_parent_task_attributes_independent: Independent of subtasks
|
||
|
label_time_entries_visibility_all: All time entries
|
||
| config/locales/en.yml | ||
|---|---|---|
|
circular_dependency: "This relation would create a circular dependency"
|
||
|
cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
|
||
|
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
|
||
|
earlier_than_maximum_due_date: "cannot be earlier than %{date} because of child issues"
|
||
|
later_than_minimum_start_date: "cannot be later than %{date} because of child issues"
|
||
|
not_a_regexp: "is not a valid regular expression"
|
||
|
open_issue_with_closed_parent: "An open issue cannot be attached to a closed parent task"
|
||
|
must_contain_uppercase: "must contain uppercase letters (A-Z)"
|
||
| ... | ... | |
|
label_blank_value: blank
|
||
|
label_parent_task_attributes: Parent tasks attributes
|
||
|
label_parent_task_attributes_derived: Calculated from subtasks
|
||
|
label_parent_task_attributes_partially_derived: Partially calculated from subtasks
|
||
|
label_parent_task_attributes_independent: Independent of subtasks
|
||
|
label_time_entries_visibility_all: All time entries
|
||
|
label_time_entries_visibility_own: Time entries created by the user
|
||