Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
a490a012
Commit
a490a012
authored
11 years ago
by
Vincent Massol
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-8742: Adding a page through the menu fails when the current page doesn't exist
parent
e1f287f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/createinline.vm
+3
-8
3 additions, 8 deletions
...ki-platform-web/src/main/webapp/templates/createinline.vm
with
3 additions
and
8 deletions
xwiki-platform-core/xwiki-platform-web/src/main/webapp/templates/createinline.vm
+
3
−
8
View file @
a490a012
...
...
@@ -28,15 +28,10 @@
## to allow creation from template directly, without necessarily going through template provider.
#
set
($
template
=
"$!request.getParameter('template')"
)
## ---------------------------------------------------------------------------------------------------------
##
S
et the space
, page variables from the current doc if its new,
from the passed parameters if
any
##
G
et the space
and page
from the passed parameters if
specified.
## ---------------------------------------------------------------------------------------------------------
#
if
($
doc
.
isNew
())
#
set
($
space
=
$
doc
.
getSpace
())
#
set
($
page
=
$
doc
.
getName
())
#
else
#
set
($
space
=
"$!request.getParameter('space')"
)
#
set
($
page
=
"$!request.getParameter('page')"
)
#
end
#
set
($
space
=
"$!request.getParameter('space')"
)
#
set
($
page
=
"$!request.getParameter('page')"
)
## ---------------------------------------------------------------------------------------------------------
## If there was an exception creating the page because of invalid space, notify.
## Should set the other variables only if there is no exception. Otherwise, if there's an exception other than the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment