summaryrefslogtreecommitdiff
path: root/doc/sample-insert-user_types.php
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-08-26 09:09:40 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-08-26 09:09:40 (GMT)
commita21a3ede4bfc20c2b1d14d5aa6656df1c3fd46aa (patch)
treeea8bfab5c6da0de02df88e0775a6a2faad453f4d /doc/sample-insert-user_types.php
parent7fd434797e24e256bfec7645048767ef9c4d3afe (diff)
downloadkolab-wap-a21a3ede4bfc20c2b1d14d5aa6656df1c3fd46aa.tar.gz
Make possible to define default object type (#2587)
Diffstat (limited to 'doc/sample-insert-user_types.php')
-rw-r--r--doc/sample-insert-user_types.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/sample-insert-user_types.php b/doc/sample-insert-user_types.php
index d457f5e..a9e173d 100644
--- a/doc/sample-insert-user_types.php
+++ b/doc/sample-insert-user_types.php
@@ -149,9 +149,9 @@
),
);
- $result = $db->query("INSERT INTO `user_types` (`key`, `name`, `description`, `attributes`) " .
- "VALUES ('kolab','Kolab User', 'A Kolab User'," .
- "'" . json_encode($attributes) . "')");
+ $result = $db->query("INSERT INTO `user_types` (`key`, `name`, `description`, `attributes`, `is_default`) " .
+ "VALUES ('kolab','Kolab User', 'A Kolab User', " .
+ "'" . json_encode($attributes) . "', 1)");
$attributes = Array(
"auto_form_fields" => Array(