mirror of
https://github.com/Karaka-Management/oms-Tasks.git
synced 2026-02-15 14:18:41 +00:00
Fix test bugs
This commit is contained in:
parent
731459ca58
commit
940840e860
|
|
@ -53,6 +53,7 @@ class Installer extends InstallerAbstract
|
||||||
`task_priority` tinyint(1) NOT NULL,
|
`task_priority` tinyint(1) NOT NULL,
|
||||||
`task_due` datetime NOT NULL,
|
`task_due` datetime NOT NULL,
|
||||||
`task_done` datetime DEFAULT NULL,
|
`task_done` datetime DEFAULT NULL,
|
||||||
|
`task_start` datetime DEFAULT NULL,
|
||||||
`task_schedule` int(11) DEFAULT NULL,
|
`task_schedule` int(11) DEFAULT NULL,
|
||||||
`task_created_by` int(11) NOT NULL,
|
`task_created_by` int(11) NOT NULL,
|
||||||
`task_created_at` datetime NOT NULL,
|
`task_created_at` datetime NOT NULL,
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ class Task implements \JsonSerializable
|
||||||
|
|
||||||
public function setClosable(bool $closable) /* : void */
|
public function setClosable(bool $closable) /* : void */
|
||||||
{
|
{
|
||||||
$this->isClosable = $closabe;
|
$this->isClosable = $closable;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isClosable() : bool
|
public function isClosable() : bool
|
||||||
|
|
@ -227,7 +227,7 @@ class Task implements \JsonSerializable
|
||||||
*/
|
*/
|
||||||
public function getStart() : \DateTime
|
public function getStart() : \DateTime
|
||||||
{
|
{
|
||||||
return $this->createdAt ?? new \DateTime();
|
return $this->start ?? new \DateTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user