summaryrefslogtreecommitdiffstats
path: root/lib/kolab_client_task.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kolab_client_task.php')
-rw-r--r--lib/kolab_client_task.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/kolab_client_task.php b/lib/kolab_client_task.php
index a9c835e..d8c3fd8 100644
--- a/lib/kolab_client_task.php
+++ b/lib/kolab_client_task.php
@@ -646,7 +646,7 @@ class kolab_client_task
{
$types = (array) $this->{$name . '_types'}();
$form_id = $attribs['id'];
- $add_mode = empty($data[$name]);
+ $add_mode = empty($data['dn']);
$event_fields = array();
$auto_fields = array();
@@ -746,6 +746,7 @@ class kolab_client_task
}
else {
// Add debug information
+ ksort($data);
$debug = kolab_html::escape(print_r($data, true));
$debug = preg_replace('/(^Array\n\(|\n*\)$|\t)/', '', $debug);
$debug = str_replace("\n ", "\n", $debug);
@@ -869,7 +870,7 @@ class kolab_client_task
'onclick' => "kadm.{$name}_save()",
));
- if ($data[$name]) {
+ if (!empty($data['dn'])) {
$id = $data[$name];
$form->add_button(array(
'value' => kolab_html::escape($this->translate('delete.button')),