Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
8d030c8e
Commit
8d030c8e
authored
Jun 03, 2020
by
Piotr Gawron
Browse files
verify that submap exists
parent
6d8b9c9c
Pipeline
#27551
passed with stage
in 15 minutes and 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
8d030c8e
...
...
@@ -6,6 +6,8 @@ minerva (14.0.13) stable; urgency=medium
*
Bug
fix
:
creating
comment
with
too
long
name
/
email
resulted
in
Internal
Server
Error
-
now
the
proper
error
message
is
returned
(#
1245
)
*
Bug
fix
:
user
cannot
put
too
long
name
in
a
comment
dialog
(#
1245
)
*
Bug
fix
:
when
url
contained
invalid
submap
id
unhandled
error
was
raised
(#
1243
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Wed
,
3
Jun
2020
17
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/minerva.js
View file @
8d030c8e
...
...
@@ -54,13 +54,17 @@ function processUrlGetParams(params) {
}
var
model
=
project
.
getModelById
(
modelId
);
if
(
model
!==
null
)
{
if
(
GuiConnector
.
getParams
[
"
x
"
]
!==
undefined
&&
GuiConnector
.
getParams
[
"
y
"
]
!==
undefined
)
{
var
point
=
new
Point
(
GuiConnector
.
getParams
[
"
x
"
],
GuiConnector
.
getParams
[
"
y
"
]);
sessionData
.
setCenter
(
model
,
point
);
}
if
(
GuiConnector
.
getParams
[
"
zoom
"
]
!==
undefined
)
{
sessionData
.
setZoomLevel
(
model
,
GuiConnector
.
getParams
[
"
zoom
"
]);
if
(
GuiConnector
.
getParams
[
"
x
"
]
!==
undefined
&&
GuiConnector
.
getParams
[
"
y
"
]
!==
undefined
)
{
var
point
=
new
Point
(
GuiConnector
.
getParams
[
"
x
"
],
GuiConnector
.
getParams
[
"
y
"
]);
sessionData
.
setCenter
(
model
,
point
);
}
if
(
GuiConnector
.
getParams
[
"
zoom
"
]
!==
undefined
)
{
sessionData
.
setZoomLevel
(
model
,
GuiConnector
.
getParams
[
"
zoom
"
]);
}
}
else
{
logger
.
warn
(
"
Model with given ID does not exist:
"
+
modelId
);
}
if
(
GuiConnector
.
getParams
[
"
background
"
]
!==
undefined
)
{
...
...
@@ -580,7 +584,7 @@ function create(params) {
}).
then
(
function
()
{
var
submapId
=
GuiConnector
.
getParams
[
"
submap
"
];
if
(
submapId
!==
undefined
)
{
if
(
submapId
!==
undefined
&&
customMap
.
getSubmapById
(
submapId
)
!==
null
)
{
return
customMap
.
openSubmap
(
submapId
);
}
}).
then
(
function
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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