Ticket #1350: 1350.patch
| File 1350.patch, 1.4 kB (added by andrew, 1 year ago) |
|---|
patch that worked for me. |
-
src/web/org/openmrs/web/filter/initialization/InitializationFilter.java
old new 341 341 342 342 renderTemplate(page, referenceMap, writer); 343 343 344 } // optional step four 344 } // optional step four f 345 345 else if ("adminusersetup.vm".equals(page)) { 346 346 347 347 if ("Back".equals(httpRequest.getParameter("back"))) { … … 545 545 546 546 // start openmrs 547 547 try { 548 Context.openSession(); 548 549 Context.startup(runtimeProperties); 549 550 } 550 551 catch (DatabaseUpdateException updateEx) { … … 565 566 renderTemplate(DEFAULT_PAGE, null, writer); 566 567 return; 567 568 } 568 569 569 570 // TODO catch openmrs errors here and drop the user back out to the setup screen 570 571 571 if (!wizardModel.implementationId.equals("")) { 572 572 try { 573 573 Context.addProxyPrivilege(OpenmrsConstants.PRIV_MANAGE_GLOBAL_PROPERTIES); … … 642 642 643 643 // set this so that the wizard isn't run again on next page load 644 644 initializationComplete = true; 645 Context.closeSession(); 645 646 646 647 // TODO send user to confirmation page with results of wizard, location of runtime props, etc instead? 647 648 httpResponse.sendRedirect("/" + WebConstants.WEBAPP_NAME);
Download in other formats:
Powered by Trac 0.10.5
By Edgewall Software.
Visit the Trac open source project at
http://trac.edgewall.com/