projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Store original extension.
[demoscenemusic.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
demoscenemusic
/
page
/
admin
/
EditArtistPage.java
diff --git
a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java
b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java
index
c51e584
..
8c141fa
100644
(file)
--- a/
src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java
+++ b/
src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditArtistPage.java
@@
-68,8
+68,12
@@
public class EditArtistPage extends AdminBasePage {
if (request.getMethod() == Method.POST) {
String name = request.getServletRequest().getParameter("name");
artist.setName(name);
if (request.getMethod() == Method.POST) {
String name = request.getServletRequest().getParameter("name");
artist.setName(name);
+
+ /* process property changes. */
+ processProperties(request, artist);
+
getCore().getDataManager().saveArtist(artist);
getCore().getDataManager().saveArtist(artist);
- throw new RedirectException("admin.
artists"
);
+ throw new RedirectException("admin.
edit-artist?id=" + artist.getId()
);
}
} catch (DatabaseException de1) {
throw new RuntimeException("Could not load artist.", de1);
}
} catch (DatabaseException de1) {
throw new RuntimeException("Could not load artist.", de1);