Comments (3)
Sorry, this is a bug in the task plugin.
Until the bug is fixed, please try this workaround:
- Open the file
lib/plugins/task/helper.php
- Starting at line 137 you should find the following code block:
$result[$task['key']] = array(
'id' => $id,
'date' => $date,
'user' => $task['user']['name'],
'status' => $this->statusLabel($task['status']),
'priority' => $task['priority'],
'perm' => $perm,
'file' => $task['file'],
'exists' => true,
);
- Insert some lines in front of this code so that it looks like this:
// Make sure the key is unique (but not more than 10 tries...
// ...just a workaround for now)
$max = 0;
while (array_key_exists ($task['key'], $result)) {
$task['key']++;
$max++;
if ($max > 10) {
break;
}
}
$result[$task['key']] = array(
'id' => $id,
'date' => $date,
'user' => $task['user']['name'],
'status' => $this->statusLabel($task['status']),
'priority' => $task['priority'],
'perm' => $perm,
'file' => $task['file'],
'exists' => true,
);
- Save the file
This will automatically do what you did. It does not change the task page content but when the task list is build and the number is the same as for a already listed task page it will simply increasing the number by 1. If there is still another task page with the same number it is increasing it again and so on... after 10 tries it is giving up and in that case you again would lose a task page in the list. That is why this is just a workaround to help you quick.
By the way: a very good examination of the problem. Not sure if I would have found it myself 👍
Worked well for me, please test.
from plugin-task.
@babudro: any news/feedback? Did this solve your problem?
from plugin-task.
Hi, I just updated the tasks-plugin to the newest version and noticed this bug. My tasks didn't show up. The code above fixed it. Maybe include the code in the next release?
from plugin-task.
Related Issues (20)
- Changing the owner of a task with DW "Anteater" doesnt show in tasklist HOT 6
- Task not displayed in overview until status change HOT 2
- ACL HOT 4
- Message "Warning: Illegal string offset ' in search.php HOT 2
- Error Warnings in helper.php HOT 1
- Assing Multiple Users to one Task
- "verified" view option is missing from Tasks Overview
- Screenshot Links Broken HOT 2
- Feature Request: Linking to Redmine Tickets HOT 4
- Add possibility to show the new task form only HOT 1
- Drop-Down list for user names, optionally limited to one user group HOT 1
- New task form is setting invalid priority values HOT 1
- Feature Request: Add Icons for Priority
- Feature Request: Scrum Board View
- Done Status
- Sort by due date
- Conflict with Publish Plugin HOT 1
- New Task with same name
- Overview not working on synology NAS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-task.