Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
9eeb23d4
Commit
9eeb23d4
authored
Apr 13, 2012
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 737850 - Bug.history and Bug.get use different field names
r/a=LpSolit
parent
a699a59e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
Bug.pm
Bugzilla/WebService/Bug.pm
+10
-3
No files found.
Bugzilla/WebService/Bug.pm
View file @
9eeb23d4
...
@@ -348,8 +348,10 @@ sub history {
...
@@ -348,8 +348,10 @@ sub history {
my
$ids
=
$params
->
{
ids
};
my
$ids
=
$params
->
{
ids
};
defined
$ids
||
ThrowCodeError
(
'param_required'
,
{
param
=>
'ids'
});
defined
$ids
||
ThrowCodeError
(
'param_required'
,
{
param
=>
'ids'
});
my
@return
;
my
%
api_name
=
reverse
%
{
Bugzilla::Bug::
FIELD_MAP
()
};
$api_name
{
'bug_group'
}
=
'groups'
;
my
@return
;
foreach
my
$bug_id
(
@$ids
)
{
foreach
my
$bug_id
(
@$ids
)
{
my
%
item
;
my
%
item
;
my
$bug
=
Bugzilla::
Bug
->
check
(
$bug_id
);
my
$bug
=
Bugzilla::
Bug
->
check
(
$bug_id
);
...
@@ -365,14 +367,15 @@ sub history {
...
@@ -365,14 +367,15 @@ sub history {
$bug_history
{
who
}
=
$self
->
type
(
'string'
,
$changeset
->
{
who
});
$bug_history
{
who
}
=
$self
->
type
(
'string'
,
$changeset
->
{
who
});
$bug_history
{
changes
}
=
[]
;
$bug_history
{
changes
}
=
[]
;
foreach
my
$change
(
@
{
$changeset
->
{
changes
}
})
{
foreach
my
$change
(
@
{
$changeset
->
{
changes
}
})
{
my
$api_field
=
$api_name
{
$change
->
{
fieldname
}}
||
$change
->
{
fieldname
};
my
$attach_id
=
delete
$change
->
{
attachid
};
my
$attach_id
=
delete
$change
->
{
attachid
};
if
(
$attach_id
)
{
if
(
$attach_id
)
{
$change
->
{
attachment_id
}
=
$self
->
type
(
'int'
,
$attach_id
);
$change
->
{
attachment_id
}
=
$self
->
type
(
'int'
,
$attach_id
);
}
}
$change
->
{
removed
}
=
$self
->
type
(
'string'
,
$change
->
{
removed
});
$change
->
{
removed
}
=
$self
->
type
(
'string'
,
$change
->
{
removed
});
$change
->
{
added
}
=
$self
->
type
(
'string'
,
$change
->
{
added
});
$change
->
{
added
}
=
$self
->
type
(
'string'
,
$change
->
{
added
});
$change
->
{
field_name
}
=
$self
->
type
(
'string'
,
$change
->
{
field_name
}
=
$self
->
type
(
'string'
,
$api_field
);
delete
$change
->
{
fieldname
})
;
delete
$change
->
{
fieldname
}
;
push
(
@
{
$bug_history
{
changes
}},
$change
);
push
(
@
{
$bug_history
{
changes
}},
$change
);
}
}
...
@@ -2109,6 +2112,10 @@ The same as L</get>.
...
@@ -2109,6 +2112,10 @@ The same as L</get>.
=item Added in Bugzilla B<3.4>.
=item Added in Bugzilla B<3.4>.
=item Field names changed to be more consistent with other methods in Bugzilla B<4.4>.
=item As of Bugzilla B<4.4>, field names now match names used by L<Bug.update|/"update"> for consistency.
=back
=back
=back
=back
...
...
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