dmorlitz / kanboard-duedate

Enable due date sorting in columns for Kanboard
MIT License
14 stars 1 forks source link

Error: Notice: Undefined index: project_id in C:\xampp\htdocs\kanboard\plugins\DueDate\Template\board\table_tasks.php on line 30 #8

Open sebomoto opened 4 years ago

sebomoto commented 4 years ago

After activating Duedate we get this error in the board view - apparently as many times as there are active tasks.

When opening one task and returning to the board view, the error(s) are not shown anymore.

After changing to a different projekt board and returning to the one with duedate-sorting active, the errors are back.

This is our app configuration:

Version: 1.2.11
PHP Version: 7.1.24
PHP SAPI: apache2handler
HTTP-Client: cURL
OS Version: Windows NT 10.0
Datenbanktreiber: mysql
Datenbank Version: 10.1.37-MariaDB
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0

Screenshot of the errors in the project board: 2020-10-07 15_51_39-Entwurfserstellung-error

dmorlitz commented 4 years ago

On the offending line (#30) I had "cheated" a bit and tried to pull the Project ID from the URL instead of properly from the internal Kanboard data elements. I am guessing that due to your URL rewriting, the parameter names on the URL did not match what I had, which is what I think caused the issue.

I have found a way to get the same data from Kanboard's internal data for the tasks. Please try the latest version on Github and let me know if that works. If the problem is resolved, then I will package the change up as a new release.

sebomoto commented 4 years ago

Thanks so much for the fast response - I will try tomorrow and let you know!

Vom Smartphone gesendet - kurz gefasste Texte und Tippfehler bitte entschuldigen, danke!

Am 07.10.2020 um 16:30 schrieb dmorlitz notifications@github.com:

 On the offending line (#30) I had "cheated" a bit and tried to pull the Project ID from the URL instead of properly from the internal Kanboard data elements. I am guessing that due to your URL rewriting, the parameter names on the URL did not match what I had, which is what I think caused the issue.

I have found a way to get the same data from Kanboard's internal data for the tasks. Please try the latest version on Github and let me know if that works. If the problem is resolved, then I will package the change up as a new release.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sebomoto commented 4 years ago

Just tested the latest github version - it works now. Thanks again, this is a very useful plugin. After you release a new version i can test that too.

dmorlitz commented 4 years ago

My skills with Github are limited - but I think I just pushed these updates as version 1.1