aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-10-26 12:15:26 +0200
committerWilly Micieli <micieli@laposte.net>2019-10-26 12:15:26 +0200
commiteaf00d4a4521b9a5f7ab38fdcab19c2d0d7174c1 (patch)
tree4f3f10771668bd7f0571c5a4e92e19af84d3775e
parent1ba99df7a3e9152d6730d548272070582c152615 (diff)
downloadimperium-eaf00d4a4521b9a5f7ab38fdcab19c2d0d7174c1.zip
imperium-eaf00d4a4521b9a5f7ab38fdcab19c2d0d7174c1.tar.gz
can update a task10.5
-rw-r--r--imperium/Controller/Task.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/imperium/Controller/Task.php b/imperium/Controller/Task.php
index 41c9dde..8ea2f1c 100644
--- a/imperium/Controller/Task.php
+++ b/imperium/Controller/Task.php
@@ -37,6 +37,21 @@ namespace Imperium\Controller {
/**
*
+ * Update a task
+ *
+ * @return RedirectResponse
+ *
+ * @throws DependencyException
+ * @throws Kedavra
+ * @throws NotFoundException
+ */
+ public function update(): RedirectResponse
+ {
+ return Todo::update($this->request()->request->get('id'),$this->collect($this->request()->request->all())->del(CSRF_TOKEN,'method')->all()) ? $this->back('updated') : $this->back('not updated',false);
+ }
+
+ /**
+ *
* Create a task
*
* @return RedirectResponse