Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reg-app
Regapp
Commits
1245d31a
Commit
1245d31a
authored
Jun 10, 2021
by
michael.simon
Browse files
remove bug on loading script edit page
parent
1a8699a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
bwreg-webapp/src/main/java/edu/kit/scc/webreg/bean/admin/brule/EditScriptBean.java
View file @
1245d31a
...
...
@@ -35,12 +35,11 @@ public class EditScriptBean implements Serializable {
private
Long
id
;
public
void
preRenderView
(
ComponentSystemEvent
ev
)
{
entity
=
service
.
findById
(
id
);
}
public
String
save
()
{
service
.
save
(
entity
);
return
ViewIds
.
SHOW_SCRIPT
+
"?faces-redirect=true&scriptId="
+
e
ntity
.
getId
();
return
ViewIds
.
SHOW_SCRIPT
+
"?faces-redirect=true&scriptId="
+
getE
ntity
()
.
getId
();
}
public
String
cancel
()
{
...
...
@@ -48,6 +47,10 @@ public class EditScriptBean implements Serializable {
}
public
ScriptEntity
getEntity
()
{
if
(
entity
==
null
)
{
entity
=
service
.
findById
(
id
);
}
return
entity
;
}
...
...
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