Commit Graph

3018 Commits

Author SHA1 Message Date
Frédéric Guillot d0941ccd4e Update task time spent/estimated when removing a subtask
Fixes #3811
2023-02-13 20:52:39 -08:00
Frédéric Guillot bd8bcfbc37 Always trim the username before saving changes in the database
Fixes #4742
2023-02-12 19:30:23 -08:00
Frédéric Guillot 5f3225bddc Avoid Postgres SQL error when using project filter with a large integer
Fixes #4845
2023-02-12 18:25:35 -08:00
Frédéric Guillot 5e4d506b28 Enable Sqlite WAL mode by default
WAL provides more concurrency as readers do not block writers and,
a writer does not block readers. Reading and writing can proceed concurrently.

This change might reduce the number of errors related to locked databases.

For reference: https://sqlite.org/wal.html
2023-02-10 20:02:18 -08:00
greyaz 5c25755f9e Update translations.php 2023-01-18 18:35:19 -08:00
Frédéric Guillot bdaa2f585d Sync translations 2023-01-14 11:41:42 -08:00
Chris bb5e45ef69
Fire event after `TaskMoveColumnOnDueDate` action
Fixes #5021
2023-01-12 18:23:53 -08:00
Joe Nahmias 32667285a8 fix: update test for DateTime parse errors to work in php8.2
check if getLastErrors() returns a false bool, rather than specific
array elements, as this throws an error in php8.2 if there are no
errors returned.
2023-01-12 18:13:44 -08:00
Frédéric Guillot 3824e6e9aa Fix potential XSS on the Settings / API page
The CSP policy already prevent the execution of inline Javascript.
2023-01-06 12:25:57 -08:00
Shyam Chaudhary 8902c1448d
Use wildcard operator for tag filter
Fixes #4950
2023-01-06 11:47:31 -08:00
greyaz 372ebcb37e Update translations.php 2023-01-06 06:05:11 -08:00
Pascal Rigaux 3bbf26b169 Fix broken user mentions in popup comment form
This commit partially reverts commit

> commit 61e63ef9e0
> Author: Tomas Dittmann <chaosmeist3r@gmail.com>
> Date:   Sat Feb 5 05:59:33 2022 +0100
>
>   Remove `project_id` from task URLs

where those things should have been kept

(cf FormHelper::textEditor for the need for $values['project_id'])
2023-01-06 06:03:54 -08:00
ScarletBlizzard 7c0a239ec3
Correct and add translation in ru_RU/translations.php (#5106) 2022-12-13 20:55:35 -08:00
greyaz f91cdfe420
Update a wrong translation in zh_CN/translations.php (#5105) 2022-12-13 20:26:04 -08:00
mundry ac94004ea9 feat: add functionality to import tasks from a project 2022-11-15 20:41:16 -08:00
Frédéric Guillot 63f3216447 Update German translation 2022-11-12 17:08:51 -08:00
Frédéric Guillot 2b4e02c974 Fix incorrect placeholder in documentation link 2022-11-12 17:08:02 -08:00
Frédéric Guillot 80c073432f Update links to the new documentation website 2022-11-12 11:49:19 -08:00
Joe Nahmias 33852e9ea0 feature: add Microsoft SQL Server database support
can be used via the pdo_dblib or pdo_odbc extensions.
requires Microsoft SQL Server 2016 or later.

* add schema/migrations
* add database provider
* add setup check for pdo module needed by selected driver (dblib/odbc)
* add default config doc
2022-10-29 21:11:15 -07:00
Joe Nahmias 3df89f9df2 fix(mssql): when updating an object by id, omit the id itself
It is a useless update and id is an identity column in MSSQL,
which is not updatable and throws an error if you try.

This affects the following seven objects (Models):
- Category
- CustomFilter
- Group
- Project
- Subtask
- TaskExternalLink
- User
2022-10-29 18:17:35 -07:00
Joe Nahmias 29df527979 fix(mssql): do not needlessly qualify columns in ProjectRoleRestrictionModel
this allows the ORM to properly escape the rule column
needed on MSSQL as it is a reserved word
2022-10-29 18:17:35 -07:00
Joe Nahmias cf739273d5 fix(mssql): do not needlessly qualify columns in ColumnRestrictionModel
this allows the ORM to properly escape the rule column, as needed on MSSQL
2022-10-29 18:17:35 -07:00
Joe Nahmias 70bc427470 fix(mssql): use picodb ORM for subtask timer query, rather than hardcoded SQL
the hardcoded SQL was failing on MSSQL because 'end' is a reserved keyword
and thus must be escaped
escape identifiers within subtask timer subquery conditions
serialize and interpolate values into text after generation
2022-10-29 18:17:35 -07:00
Joe Nahmias c39932050c fix(mssql): omit ORDER BY in Task WithoutTags & WithGivenTag subqueries
MSSQL does not allow ORDER BY in subquery without TOP or FETCH/LIMIT
2022-10-29 18:17:35 -07:00
Joe Nahmias 81caabbc74 fix: do not hardcode link_id of 'is a milestone of' in TaskFinderModel
instead lookup which link_id was automatically assigned by the databsae
based on the label
2022-10-29 18:17:35 -07:00
Frédéric Guillot 669b5c7e2e Avoid deprecation warning when the task description is null 2022-10-09 15:44:25 -07:00
greyaz 1664f4c304
Update zh_CN translations 2022-10-09 15:17:10 -07:00
Frédéric Guillot 11edef20d2 No internal link creation on subtask to task conversion if language is not English 2022-09-28 20:28:16 -07:00
Marco van Duijvenbode 55a3b242bf
Move version.txt to app folder 2022-09-28 19:42:35 -07:00
greyaz 8443f60748 Update translations.php
some translations of colors are wrong
2022-09-21 17:33:08 -07:00
irdc 4b76bc5b32
Use a HMAC to sign and validate CSRF tokens, instead of generating random ones and storing them in the session data
* Use a HMAC to sign and validate CSRF tokens, instead of generating random
ones and storing them in the session data. Reduces number of writes to
sessions table and fixes kanboard issue #4942.
* Added missing CSRF check for starting/stopping subtask timers.

Co-authored-by: Willemijn Coene <willemijn@irdc.nl>
2022-09-17 17:23:41 -07:00
greyaz edf31ab20b Update TaskAssignDueDateOnMoveColumn.php 2022-09-15 21:08:59 -07:00
greyaz b7761b05e1 More precise zh_CN translations 2022-09-15 20:30:50 -07:00
Frédéric Guillot 29e434b4d6 Update Croatian translations 2022-09-13 20:17:47 -07:00
Rafael de Camargo 3c5cafc8eb Fixes warning when project description is null
Fixes #5059
2022-09-13 19:37:28 -07:00
Frédéric Guillot f3966c99fc Open SVG files in browser 2022-09-04 16:40:05 -07:00
Frédéric Guillot d7a4b59db3 Open videos in browser 2022-09-04 16:12:14 -07:00
Frédéric Guillot 1c8b278116 Open Ogg file attachments in browser 2022-09-04 15:51:27 -07:00
Frédéric Guillot 84c7692710 Update jQuery to latest stable version 2022-09-04 15:08:20 -07:00
Frédéric Guillot b433519686 Rename default branch from master to main 2022-08-11 21:57:19 -07:00
Jack Williams c53bee4a08
Translate subtask status on demand
Fixes #4476
2022-07-11 20:45:06 -07:00
Tomas Dittmann 6308ac41cd add projectoverview document template hook 2022-07-10 17:03:18 -07:00
Eskiso 4112f55219 Added more extensions to FileHelper - Fixes #5024
Added more video, music, code and excel extensions to show a more correct icon on the attachments.
2022-06-27 17:40:29 +02:00
Eskiso aac2f93264 Updated PT translations. 2022-06-27 17:36:56 +02:00
korlikiangel fe42db9ea5
Update pl_PL translations 2022-06-02 15:34:22 +02:00
evrix 1b5bb826b6
Updated Italian translation 2022-05-15 14:24:41 -07:00
greyaz 29786682e1
Update zh_CN translations 2022-03-19 13:24:59 -07:00
emojized 178e2eaf63
Fix `General error: 1 no such table: main.task_has_subtasks`
See: https://kanboard.discourse.group/t/error-no-such-table-main-task-has-subtasks/1664/15

> The `subtask_time_tracking table` has a wrong foreign key constraint. The constraints references the no-longer-existing table `task_has_subtasks`.
2022-03-17 18:10:52 -07:00
Tomas Dittmann c4f9c34f75
Reordering of subtask is not saved 2022-03-17 17:25:46 -07:00
greyaz 05f85a8f59
Update zh_CN / zh_TW translations 2022-03-10 19:33:32 -08:00