Ver código fonte

Ya se guarda

Mario Martínez Hernández 4 meses atrás
pai
commit
0ac8ae535b

+ 2 - 1
src/main/java/es/uv/saic/web/ProceduresController.java

@@ -34,6 +34,7 @@ import org.springframework.ui.Model;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
@@ -335,7 +336,7 @@ public class ProceduresController {
 	 */
 	@PostMapping("/procedure/save/{id}")
 	@ResponseBody
-	public HashMap<String, Object> saveDraft(@PathVariable BigInteger id, @RequestParam String text, 
+	public HashMap<String, Object> saveDraft(@PathVariable BigInteger id, @RequestBody String text, 
 							@RequestParam boolean manual, @RequestParam String usuari) {
 		HashMap<String, Object> model = new HashMap<>();
 		Usuari u = us.findByUsername(usuari);