Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
22b41f9c
Commit
22b41f9c
authored
Aug 16, 2019
by
Michael Ott
Browse files
Set Entity name properly when using template
parent
ff4ef910
Changes
1
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/includes/ConfiguratorTemplate.h
View file @
22b41f9c
...
@@ -476,6 +476,7 @@ protected:
...
@@ -476,6 +476,7 @@ protected:
auto
it
=
_templateSensorEntitys
.
find
(
def
.
get
().
data
());
auto
it
=
_templateSensorEntitys
.
find
(
def
.
get
().
data
());
if
(
it
!=
_templateSensorEntitys
.
end
())
{
if
(
it
!=
_templateSensorEntitys
.
end
())
{
sEntity
=
*
(
it
->
second
);
sEntity
=
*
(
it
->
second
);
sEntity
.
setName
(
config
.
data
());
for
(
auto
g
:
_templateSensorGroups
)
{
for
(
auto
g
:
_templateSensorGroups
)
{
if
(
it
->
second
==
g
.
second
->
getEntity
())
{
if
(
it
->
second
==
g
.
second
->
getEntity
())
{
SG_Ptr
group
=
std
::
make_shared
<
SGroup
>
(
*
(
g
.
second
));
SG_Ptr
group
=
std
::
make_shared
<
SGroup
>
(
*
(
g
.
second
));
...
...
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