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
Open sidebar
tev
plugin_event
Commits
5e60607f
Commit
5e60607f
authored
Oct 13, 2019
by
LE GAC Renaud
Browse files
Update UserDataMultiDefault to fix another bug in setValue.
parent
f5d7717e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
static/plugin_event/src/form/field/UserDataMultiDefault.js
static/plugin_event/src/form/field/UserDataMultiDefault.js
+8
-7
No files found.
static/plugin_event/src/form/field/UserDataMultiDefault.js
View file @
5e60607f
...
...
@@ -118,15 +118,16 @@ Ext.define('Event.form.field.UserDataMultiDefault', {
var
me
=
this
,
combo
=
me
.
combo
||
null
,
form
=
me
.
up
(
'
xform, form
'
).
getForm
(),
cfg
,
formRecord
,
rawValue
;
cfg
,
formAction
,
formRecord
,
rawValue
;
// is the form ready
if
(
!
form
)
{
return
;
}
// link
ed
the ComboBox
// link the ComboBox
// It is identified by its name, e.g HistororyId_events
// Attach handler to catch selected value in ComboBox
if
(
!
combo
)
{
me
.
combo
=
form
.
findField
(
me
.
formFieldIdEvent
);
if
(
!
combo
)
{
...
...
@@ -134,8 +135,7 @@ Ext.define('Event.form.field.UserDataMultiDefault', {
}
}
// check if the the select handler activated for the ComboBox
if
(
!
combo
.
hasListener
(
"
select
"
))
{
if
(
me
.
lastKey
===
undefined
)
{
me
.
combo
.
on
(
'
select
'
,
me
.
onComboBoxSelect
,
me
);
}
...
...
@@ -157,11 +157,12 @@ Ext.define('Event.form.field.UserDataMultiDefault', {
// form, instead, and extract the selected event.
//
// get the data load in the form
// get action and data load in the form
formAction
=
form
.
owner
.
currentAction
;
formRecord
=
form
.
getRecord
();
// get the
selected event and retrieve its configuration
if
(
formRecord
)
{
// get the
event
if
(
formRecord
&&
formAction
!==
'
create
'
)
{
me
.
lastKey
=
formRecord
.
get
(
me
.
formFieldIdEvent
);
}
else
{
...
...
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