Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-30 23:34:31 +0400
committerraimund-schluessler <raimund.schluessler@googlemail.com>2014-07-30 23:34:31 +0400
commit83933914bc39a921d39e6a893aea4be70fcf3cbe (patch)
tree853ac6a1a891b1127ae8081d17be7c8e9b13f230 /lib
parentb52e8e5e4cc68054b5b317304cb5d6d0b1f4d5d2 (diff)
Revert "Remove unused code"
This reverts commit b52e8e5e4cc68054b5b317304cb5d6d0b1f4d5d2.
Diffstat (limited to 'lib')
-rw-r--r--lib/controller/taskscontroller.php2
-rw-r--r--lib/helper.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/controller/taskscontroller.php b/lib/controller/taskscontroller.php
index 56279a02..2f9673ab 100644
--- a/lib/controller/taskscontroller.php
+++ b/lib/controller/taskscontroller.php
@@ -201,6 +201,7 @@ class TasksController extends Controller {
$start = $this->params('start');
$response = new JSONResponse();
$userId = $this->api->getUserId();
+ $calendars = \OC_Calendar_Calendar::allCalendars($userId, true);
$user_timezone = \OC_Calendar_App::getTimezone();
$request = array(
'summary' => $taskName,
@@ -233,6 +234,7 @@ class TasksController extends Controller {
public function deleteTask(){
$response = new JSONResponse();
$taskId = $this->params('taskID');
+ $task = \OC_Calendar_App::getEventObject($taskId);
\OC_Calendar_Object::delete($taskId);
return $response;
}
diff --git a/lib/helper.php b/lib/helper.php
index 66722aa7..c7a721fd 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -95,6 +95,7 @@ Class helper {
} else{
throw new \Exception('Reminder duration related to not available date.');
}
+ $result = preg_match('/^(?P<plusminus>\+|-)?P((?P<week>\d+)W)?((?P<day>\d+)D)?(T((?P<hour>\d+)H)?((?P<minute>\d+)M)?((?P<second>\d+)S)?)?$/', $reminder->TRIGGER, $matches);
$invert = false;
if ($matches['plusminus']==='-') {
$invert = true;