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
e2d16e13
Commit
e2d16e13
authored
Jul 26, 2011
by
Gregor Schmidt
Committed by
Holger Just
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#540] compatibility layer to reenable API from Chili 1.x
parent
06076e5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
journal_detail.rb
vendor/plugins/acts_as_journalized/lib/journal_detail.rb
+9
-0
journal_formatter.rb
vendor/plugins/acts_as_journalized/lib/journal_formatter.rb
+1
-1
No files found.
vendor/plugins/acts_as_journalized/lib/journal_detail.rb
0 → 100644
View file @
e2d16e13
class
JournalDetail
attr_reader
:prop_key
,
:value
,
:old_value
def
initialize
(
prop_key
,
old_value
,
value
)
@prop_key
=
prop_key
@old_value
=
old_value
@value
=
value
end
end
vendor/plugins/acts_as_journalized/lib/journal_formatter.rb
View file @
e2d16e13
...
@@ -171,7 +171,7 @@ module JournalFormatter
...
@@ -171,7 +171,7 @@ module JournalFormatter
end
end
label
,
old_value
,
value
=
attr_detail
||
cv_detail
||
attachment_detail
label
,
old_value
,
value
=
attr_detail
||
cv_detail
||
attachment_detail
Redmine
::
Hook
.
call_hook
:helper_issues_show_detail_after_setting
,
{
:detail
=>
detail
,
Redmine
::
Hook
.
call_hook
:helper_issues_show_detail_after_setting
,
{
:detail
=>
JournalDetail
.
new
(
label
,
old_value
,
value
)
,
:label
=>
label
,
:value
=>
value
,
:old_value
=>
old_value
}
:label
=>
label
,
:value
=>
value
,
:old_value
=>
old_value
}
return
nil
unless
label
||
old_value
||
value
# print nothing if there are no values
return
nil
unless
label
||
old_value
||
value
# print nothing if there are no values
label
,
old_value
,
value
=
[
label
,
old_value
,
value
].
collect
(
&
:to_s
)
label
,
old_value
,
value
=
[
label
,
old_value
,
value
].
collect
(
&
:to_s
)
...
...
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