Verified Commit caebe020 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Fix(Tasks) - Quick fix errors msgs

Fixes errors messages and array to string conversion.
Showing with 3 additions and 2 deletions
+3 -2
...@@ -68,7 +68,7 @@ class tasks extends simplePlugin ...@@ -68,7 +68,7 @@ class tasks extends simplePlugin
'fdSubTasksActivation', FALSE 'fdSubTasksActivation', FALSE
), ),
] ]
], ],
]; ];
} }
......
...@@ -208,8 +208,9 @@ class tasksMail extends simplePlugin ...@@ -208,8 +208,9 @@ class tasksMail extends simplePlugin
$errors = $tabObject->save(); $errors = $tabObject->save();
// Showing errors should be better, enhancement here required.
if (!empty($errors)) { if (!empty($errors)) {
$show_error = new SimplePluginError($this, htmlescape(sprintf(_('Error : "%s", already exist ! Editing existing tasks is forbidden.'), $subTaskName.$errors))); $show_error = new SimplePluginError($this, htmlescape(sprintf(_('Error : "%s", already exist ! Editing existing tasks is forbidden.'), $subTaskName)));
$show_error->display(); $show_error->display();
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment