Commit Graph

1972 Commits

Author SHA1 Message Date
Ralf Becker
d5654e8178 fix CardDAV error with DAVx5 caused by PHP 8.0 throwing an error instead ignoring it with a warning
PHP 8.0 ValueError: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "tf-"
current code expected Content-Type header to have charset enclosed in quotes, which it was not
2021-10-11 09:51:15 +02:00
Ralf Becker
9345152c98 fix PHP 8.0 errors: key(): Argument #1 ($array) must be of type array, null given
guarding key() from calling with null eg. $button = key($content['button']) --> key($content['button'] ?? []) or check before !empty($content['button'])
2021-10-06 16:12:49 +02:00
Ralf Becker
e5427ef762 fix PHP 8.0 Error: Argument #2 ($array) must be of type array, null given 2021-10-05 16:35:54 +02:00
Ralf Becker
0c4b719c5b REST API, do NOT take "Sync all in one addressbook" preference into account, but store in given AB 2021-09-29 10:11:47 +02:00
Ralf Becker
b953eecf40 * Addressbook: new REST API for contacts https://github.com/EGroupware/egroupware/tree/master/doc/REST-CalDAV-CardDAV
use PUT with a UID as id to update an existing resource or create it, if not existing
2021-09-27 13:31:21 +02:00
Ralf Becker
3e035a70a4 implement and document PATCH 2021-09-27 13:30:41 +02:00
Ralf Becker
392b8036f4 REST API allow sending a JSON patch to update or create a new contact (currently only via POST or PUT, not as PATCH!)
allows eg. to create a contact from a simple Wordpress contact-form only supporting POST requests and a flat object, see new example in the documentation
2021-09-27 13:30:41 +02:00
Ralf Becker
322652de95 Contacts REST API:
- implement missing PUT/POST of distribution list / CardGroups
- implement changes from next JsContact draft:
  + string plus extra localizations attribute instead of localizedString object
  + use "<domain>:<name>" for vendor attributes
- add/parse urn:uuid: prefix if UID is a UUID
2021-09-27 13:30:41 +02:00
Ralf Becker
ce5389d0d5 finished REST API for contacts modulo docu and bugs ;)
- JsCardGroup now used for distribution lists
- responses are not in "responses" attribute (no longer in root of object)
- fix sometimes empty / different members between PROPFIND/REPORT/JSON-GET and GET of group (caused by wrongly implemented limit to given AB)
- JSON pretty-print only if requested by Accept: application/pretty+json
- fix invalid JSON for errors (caused by opening {"responses": already sent
2021-09-27 13:30:41 +02:00
Ralf Becker
3bc015a90d got POST, PUT and DELETE request to add, update and delete contacts working
added JSON exception handler with nicer JsCalendar parse errors
2021-09-27 13:30:40 +02:00
Ralf Becker
18324dfa8e WIP REST Api for contacts 2021-09-27 13:30:40 +02:00
Ralf Becker
38c07d7f69 WIP REST API for contacts using JsContacts draft 2021-09-27 13:30:40 +02:00
Ralf Becker
2d24362f8f remove config allowing to immediately delete contacts (as it's required for sync) 2021-08-13 15:57:13 +02:00
nathangray
f7334fb022 Addressbook: Fix CSV import into specific addressbook was always going into importer's personal addressbook 2021-05-19 09:14:00 -06:00
nathangray
84e03fe334 Addressbook: Fix contact categories were cleared when DAVx5 synced some Android clients 2021-04-30 09:26:00 -06:00
nathangray
0232092187 Addressbook: Fix historylog showing some changes done by "Personal" 2021-04-23 10:20:20 -06:00
nathangray
f89c8cfb03 Add hrules to sidebox menus 2021-04-19 16:02:41 -06:00
Ralf Becker
38ef0e0a94 * CalDAV/CardDAV: fix freebusy-URL for users and support basic auth with regular user credentials too 2021-04-13 16:05:27 +02:00
Ralf Becker
4045c06896 fix PHP 8 errors 2021-04-06 15:32:21 +02:00
Ralf Becker
197a6348a9 fix not working extended search after by PHP 8 required rename of the methode from search to extSearch 2021-04-06 10:54:48 +02:00
nathangray
f7af9c3c0f Silence some warnings 2021-04-05 11:25:57 -06:00
Ralf Becker
868135775c PHP 8 fixes 2021-03-29 16:47:19 +02:00
nathangray
9baa79de5e Addressbook: Fix CRM view action for organisation was missing if user had no tracker access 2021-03-08 14:59:21 -07:00
nathangray
19bd3a03b0 Addressbook: Update CRM view contact info in sidebox if it's changed by push message 2021-03-04 13:53:52 -07:00
Ralf Becker
58ae23c74c allow "app.<appname>.<method>" in link registry and use it to open CRM view 2021-03-04 11:50:13 +02:00
nathangray
14dbd3d1f3 Addressbook: Push - add add_on_top_sort_field to add rows on top 2021-02-25 14:01:16 -07:00
nathangray
158e65fc90 Take contact shares into account for push ACL checks 2021-02-25 09:11:39 -07:00
nathangray
3c72462b5e Enable push for addressbook
Refactor EgwApp.push() to cover more common stuff for simpler app code
2021-02-24 09:18:42 -07:00
nathangray
d2a2ae49e3 * Addressbook: Fix missing distribution lists 2021-02-08 09:56:49 -07:00
nathangray
fac0457436 Addressbook: Fix sort changes wouldn't stay in some circumstances
In particular, sorting by Name would always reset
2020-12-29 09:39:14 -07:00
Ralf Becker
1cda58c9be fix error "Class Accounts not found" 2020-11-20 15:48:46 +01:00
nathangray
b4869aa2a1 Kanban: Add context menu action to add to existing kanban boards 2020-11-09 15:56:24 -07:00
Ralf Becker
f6aad0cd46 allow to filter by (not) shared and add groups to shared-with filter 2020-11-04 16:05:41 +01:00
Ralf Becker
d17f73cd79 add contact info to check_shared_with call, so sharerequires policy uses current data 2020-11-04 14:37:29 +01:00
Ralf Becker
378b3c6eef enable unshare action also when shared-with column is shown and fix some bugs arround unsharing and resharing 2020-11-02 12:56:00 +01:00
Ralf Becker
a3b17c5db7 display shared-with in addressbook column and allow to use it as filter 2020-11-02 12:05:13 +01:00
Hadi Nategh
b0e2e1f1be Open crm view for contact link 2020-10-29 11:47:29 +01:00
Ralf Becker
b8409a479e changes to implement policies on contact sharing 2020-10-26 10:44:40 +01:00
Ralf Becker
0755668e9f fix PHP Warning "continue" targeting switch, though a single continue/break works too 2020-10-23 20:04:04 +02:00
Hadi Nategh
6a5c6599dd WIP multitab:
- fix duplicated sidebox view id
2020-10-21 14:58:19 +02:00
Ralf Becker
9c8f76d150 WIP addressbook sharing: action to unshare contacts shared by user (only in shared_by_me view) 2020-10-19 18:38:33 +02:00
Ralf Becker
37be9f40d0 WIP contact sharing: context menu to share and filter for shared contacts 2020-10-16 21:34:42 +02:00
Ralf Becker
ff91be903a sharing ACL: need explicit new ACL or edit rights, to share into an addressbook 2020-10-15 13:03:14 +02:00
Ralf Becker
1f7ce98c50 WIP contact sharing 2020-10-13 16:54:35 +02:00
Hadi Nategh
7f4535cf1d WIP multitabs and CRM view 2020-09-30 13:19:36 +02:00
Hadi Nategh
9cf0724420 Add a css class to style crm view sidebox 2020-09-29 10:39:39 +02:00
nathangray
86bd6b719a Addressbook: Delete contacts over AJAX to avoid refresh 2020-09-28 10:51:30 -06:00
nathangray
9d94c1613d Addressbook: Export listed accounts as being in the addressbook of the exporter. They now are 'Accounts' 2020-09-28 09:14:45 -06:00
Hadi Nategh
028ff4edcb WIP multitabs: Use specific id for each crm view 2020-09-28 15:46:04 +02:00
Ralf Becker
fd9367d4cf * CardDAV/Addressbook: do NOT add empty room number as further organizational unit
eg. OutlookSynchronizer adds the semicolon to the org-unit
2020-09-11 11:48:08 +02:00