Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
OHR Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
97
Issues
97
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
OHR Support
Commits
6fcb1de6
Commit
6fcb1de6
authored
Oct 29, 2011
by
Felix Schäfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graciously handle deleted custom fields on issue history view.
parent
92dd2934
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
de.yml
config/locales/de.yml
+1
-0
en.yml
config/locales/en.yml
+1
-0
fr.yml
config/locales/fr.yml
+1
-0
issues_test.rb
test/integration/issues_test.rb
+5
-0
journal_formatter.rb
vendor/plugins/acts_as_journalized/lib/journal_formatter.rb
+9
-3
No files found.
config/locales/de.yml
View file @
6fcb1de6
...
@@ -798,6 +798,7 @@ de:
...
@@ -798,6 +798,7 @@ de:
label_project_copy_notifications
:
Sende Mailbenachrichtigungen beim Kopieren des Projekts.
label_project_copy_notifications
:
Sende Mailbenachrichtigungen beim Kopieren des Projekts.
label_principal_search
:
"
Nach
Benutzer
oder
Gruppe
suchen:"
label_principal_search
:
"
Nach
Benutzer
oder
Gruppe
suchen:"
label_user_search
:
"
Nach
Benutzer
suchen:"
label_user_search
:
"
Nach
Benutzer
suchen:"
label_deleted_custom_field
:
'
(gelöschtes
benutzerdefiniertes
Feld)'
button_login
:
Anmelden
button_login
:
Anmelden
button_submit
:
OK
button_submit
:
OK
...
...
config/locales/en.yml
View file @
6fcb1de6
...
@@ -812,6 +812,7 @@ en:
...
@@ -812,6 +812,7 @@ en:
label_additional_workflow_transitions_for_author
:
Additional transitions allowed when the user is the author
label_additional_workflow_transitions_for_author
:
Additional transitions allowed when the user is the author
label_notify_member_plural
:
Email issue updates
label_notify_member_plural
:
Email issue updates
label_path_encoding
:
Path encoding
label_path_encoding
:
Path encoding
label_deleted_custom_field
:
'
(deleted
custom
field)'
button_login
:
Login
button_login
:
Login
button_submit
:
Submit
button_submit
:
Submit
...
...
config/locales/fr.yml
View file @
6fcb1de6
...
@@ -793,6 +793,7 @@ fr:
...
@@ -793,6 +793,7 @@ fr:
label_user_search
:
"
Rechercher
un
utilisateur
:"
label_user_search
:
"
Rechercher
un
utilisateur
:"
label_additional_workflow_transitions_for_author
:
Autorisations supplémentaires lorsque l'utilisateur a créé la demande
label_additional_workflow_transitions_for_author
:
Autorisations supplémentaires lorsque l'utilisateur a créé la demande
label_additional_workflow_transitions_for_assignee
:
Autorisations supplémentaires lorsque la demande est assignée à l'utilisateur
label_additional_workflow_transitions_for_assignee
:
Autorisations supplémentaires lorsque la demande est assignée à l'utilisateur
label_deleted_custom_field
:
'
(champ
personnalisé
supprimé)'
button_login
:
Connexion
button_login
:
Connexion
button_submit
:
Soumettre
button_submit
:
Soumettre
...
...
test/integration/issues_test.rb
View file @
6fcb1de6
...
@@ -199,5 +199,10 @@ class IssuesTest < ActionController::IntegrationTest
...
@@ -199,5 +199,10 @@ class IssuesTest < ActionController::IntegrationTest
:content
=>
new_tester
.
name
:content
=>
new_tester
.
name
}
}
}
}
# Test for deleted custom field handling
@field
.
destroy
get
"/issues/
#{
issue
.
id
}
"
assert_response
:success
end
end
end
end
vendor/plugins/acts_as_journalized/lib/journal_formatter.rb
View file @
6fcb1de6
...
@@ -83,9 +83,15 @@ module JournalFormatter
...
@@ -83,9 +83,15 @@ module JournalFormatter
end
end
def
format_custom_value_detail
(
custom_field
,
values
,
no_html
)
def
format_custom_value_detail
(
custom_field
,
values
,
no_html
)
label
=
custom_field
.
name
if
custom_field
old_value
=
format_value
(
values
.
first
,
custom_field
.
field_format
)
if
values
.
first
label
=
custom_field
.
name
value
=
format_value
(
values
.
last
,
custom_field
.
field_format
)
if
values
.
last
old_value
=
format_value
(
values
.
first
,
custom_field
.
field_format
)
if
values
.
first
value
=
format_value
(
values
.
last
,
custom_field
.
field_format
)
if
values
.
last
else
label
=
l
(
:label_deleted_custom_field
)
old_value
=
values
.
first
value
=
values
.
last
end
[
label
,
old_value
,
value
]
[
label
,
old_value
,
value
]
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment