Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swing-webapp
api
Commits
bef40218
Commit
bef40218
authored
May 17, 2021
by
antoine masson
Browse files
v1.12
Fix poc empty in surveymodel
parent
a5736fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/SurveyModel.js
View file @
bef40218
...
...
@@ -250,7 +250,7 @@ SurveySchema.virtual('poc').get(async function() {
let
poc
=
this
.
general
.
poc
if
(
this
.
general
.
poc
.
useglobal
){
const
opt
=
await
GlobalOptions
.
findById
(
0
,{
poc
:
1
});
if
(
opt
.
poc
){
if
(
opt
&&
opt
.
poc
){
poc
=
opt
.
poc
;
}
else
{
poc
=
null
...
...
Write
Preview
Supports
Markdown
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