Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
tev
plugin_event
Commits
fe2337a0
Commit
fe2337a0
authored
Nov 19, 2019
by
LE GAC Renaud
Browse files
Improve RowHistoryData.setHistoryData.
parent
75342a60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
static/plugin_event/src/grid/RowHistoryData.js
static/plugin_event/src/grid/RowHistoryData.js
+16
-5
No files found.
static/plugin_event/src/grid/RowHistoryData.js
View file @
fe2337a0
...
...
@@ -158,11 +158,22 @@ Ext.define("Event.grid.RowHistoryData", {
setHistoryData
:
function
(
value
)
{
"
use strict
"
;
var
me
=
this
,
events
=
me
.
eventStore
,
idEvent
=
me
.
historyId_events
,
cfg
=
Event
.
getHistoryDataConfig
(
events
,
idEvent
);
var
me
=
this
,
events
,
idEvent
,
cfg
;
if
(
me
.
readOnly
)
{
me
.
setSource
(
value
);
}
else
{
events
=
me
.
eventStore
;
idEvent
=
me
.
historyId_events
;
me
.
setSource
(
value
,
cfg
.
sourceConfig
);
if
(
idEvent
===
undefined
)
{
throw
"
historyId_events is undefined, a bug in ExtJS 6.2.0 ?
"
;
}
cfg
=
Event
.
getHistoryDataConfig
(
events
,
idEvent
);
me
.
setSource
(
value
,
cfg
.
sourceConfig
);
}
}
});
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