mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-09 05:48:20 +00:00
Fixed missing redirect
This commit is contained in:
parent
407dbafabd
commit
1f7f8ba327
@ -338,6 +338,7 @@ public class DefaultDbAdminController {
|
|||||||
} catch (DataIntegrityViolationException e) {
|
} catch (DataIntegrityViolationException e) {
|
||||||
attr.addFlashAttribute("errorTitle", "Unable to DELETE row");
|
attr.addFlashAttribute("errorTitle", "Unable to DELETE row");
|
||||||
attr.addFlashAttribute("error", e.getMessage());
|
attr.addFlashAttribute("error", e.getMessage());
|
||||||
|
return "redirect:/" + properties.getBaseUrl() + "/model/" + className;
|
||||||
}
|
}
|
||||||
|
|
||||||
saveAction(new UserAction(schema.getTableName(), id, "DELETE", schema.getClassName()));
|
saveAction(new UserAction(schema.getTableName(), id, "DELETE", schema.getClassName()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user