Commit Graph

56 Commits

Author SHA1 Message Date
Ralf Becker
5428f8d941 "allow admins to import contacts with creator / created date set" 2007-11-23 17:19:38 +00:00
Ralf Becker
74c9b0ccb7 fix prevent deleting of accounts via SyncML and to read private flag from the DB if missing 2007-10-11 06:24:57 +00:00
Ralf Becker
7b6a1013fc SyncML patches from patrick.bihan-faou-AT-mindstep.com (without
logout+mbstring stuff), small modification to use the already exiting
methodes to generate full name and fileas)
The code is commited to trunk only at the moment to allow testing of it.
If everything goes well, we intend to commit it to 1.4 branch too.
Here's the original description of the patch by Patrick:
- handles the default config for current versions of funambol (i.e. the
scard/stask/snote/scal locations)
- tries to be a bit smarter on how the data content should be encoded
based on what the client specified (sif+base64/vcard, / fragmented or
not, etc.)
- workaround a bug in some versions of funambol, where funambol does not
specify the proper sif type for the type of requested data
- imported patch #117 from egw's tracker
- make sure that the logs generated by the horde code go to stderr so
they can be view in the webserver's logs
- as much as possible reduce code duplication. For example, the
categories are handled in the parent classes for both the SIF avn VCAL
formats for each type of data (addressbook,infolog,calendar).
- make sure the code can handle more than one categories in each
  direction
- treat the 'sony ericsson' vendor string just like 'sonyericsson', the
newer phones apparently have a space in the vendor string... (this
touches some files in the icalsrv as well)
- handle notes: these should now work with everything (funambol or
  other)
- remove more code duplication: the syncml "api" for the various data
types (calendar, contacts, infolog) is now common for both the vcard and
sif data formats (cf the files that need to be removed)
- handle the "privat" filter in infolog like the "private" filter (some
part of the code use the name without the trailing e)
- imported patch # 267 from egw's tracker
2007-09-29 10:29:48 +00:00
Cornelius Weiß
b6cd1ee9e6 backport syncML fixes 2007-07-04 19:13:00 +00:00
Ralf Becker
25197222bf "patch #978 from Nathan Gray, file as option incl. org_unit" 2007-06-28 06:11:58 +00:00
Ralf Becker
1602ebc69d "some fixes for syncml:
- if no owner/addressbook set on update load owner AND private from the existing contact
- if no owner/addressbook set for new entries, use the add_default prefs if set and the personal adb of the user if not"
2007-06-25 16:16:55 +00:00
Ralf Becker
68eb676729 "fix for bug #952: Fatal error: Undefined class name 'self' in class.bocontacts.inc.php on line 86
self:: is PHP5 :-("
2007-06-22 12:42:56 +00:00
Ralf Becker
28d9dbf471 fixed some bugs in the document templates and added the ability to print the next appointments of a contact 2007-06-19 17:06:32 +00:00
Ralf Becker
4ce40c0fd2 "address formats from many countries from http://www.bitboost.com/ref/international-address-formats.html
thanks to mikaelarhelger-AT-gmail.com"
2007-06-12 16:31:58 +00:00
Ralf Becker
00ea3da691 fix for bug #323: Postal Code / City, Country / State fields confusing 2007-05-03 08:17:31 +00:00
Ralf Becker
1aca20e56d fix for bug #625: Warning when deleting contacts 2007-05-01 08:17:22 +00:00
Ralf Becker
6675194ff8 worked around stupid php5.2 empty haystack warnings 2007-04-29 14:28:47 +00:00
Ralf Becker
841c85b9db bugfix: typo prevened deletion of distribution lists 2007-04-18 15:33:22 +00:00
Ralf Becker
62bd5fa81f distribution lists for the sql addressbook 2007-03-13 13:38:15 +00:00
Ralf Becker
7a653f4a1d - new feature to merge contacts into one
- added missing link::unlink if contacts get deleted
- some tweaks in the edit template: n_fn was not readonly, added focus for n_prefix to onclick
2006-12-19 11:25:44 +00:00
Ralf Becker
93396fe850 some (crm) features:
- filter for business country
- sorting by postal code
- add can create now already linked entries by specifying app/id pairs in the url (as eg. timesheet)
- setting egw_info[flags][currentid] in view to allow to add already linked entries via quick add
some bugfixes:
- sql can now change the ownership if a user gets deleted, ldap implementation still missing, but gives no more error
- photo template was not shown under some circumstances
2006-12-11 07:35:49 +00:00
Cornelius Weiß
3e6921d5b9 preserv cats if updateing contacts from import 2006-10-31 09:26:40 +00:00
Lars Kneschke
d50f13d980 call the function and do not try searching the non existing array 2006-10-26 04:01:41 +00:00
Ralf Becker
3ae17a35cf InfoLog view for organisations or multiple contacts 2006-10-23 11:48:56 +00:00
Ralf Becker
01286bbc9b make the display of addressbook-links configurable:
- own sorting (default: Company: Last name, First name)
- Company: Last name, First name
- Company, Department: Last name, First name
- Company, City: Last name, First name
- Company, Department, City: Last name, First name
2006-10-19 08:50:25 +00:00
Ralf Becker
48a76e2354 fixed under some circumstances not working fileas title creation 2006-10-11 12:34:22 +00:00
Ralf Becker
5cfe53bc7d typo 2006-10-07 09:16:04 +00:00
Ralf Becker
f4e79928f6 fixed link_query hook, it returned array('') instead of array() for nothing found 2006-10-02 06:45:46 +00:00
Ralf Becker
acd9ac7777 fixed error-message on save of new contact (id was not returned due to a recent change) 2006-09-20 04:30:13 +00:00
Ralf Becker
13439ea6ac Fixed problem reported on the developer list: editing an account under the SQL backend removes first and last name 2006-09-18 08:15:08 +00:00
Ralf Becker
b968f9327c - ACL to allow non-admin users to edit certain (explicitly allowed) fields in their own account contact data
- new hook editaccountcontact to sync other apps with these data
- admin ACL "edit users" is now respected by the contact class for account-contact-data too (you can deny admins to edit accounts)
- fixed bug in ldap-backend: it was deleting all not set contact fields
2006-09-15 07:16:07 +00:00
Ralf Becker
f5cf1ed1d2 fixed error in ldap-backend: "Error saving the contact !!! 1" 2006-09-13 04:49:53 +00:00
Ralf Becker
53ad443399 fixed not working update via SyncML 2006-08-22 08:14:35 +00:00
Ralf Becker
671f175090 setting the freebusy_uri only if not in setup! 2006-07-22 18:02:15 +00:00
Ralf Becker
8f26ec2b1b automatic setting the freebusy url for accounts 2006-07-14 23:25:52 +00:00
Ralf Becker
c14d006c15 bocontact::save returns now (again) the id on success and false on error 2006-07-09 22:58:04 +00:00
Ralf Becker
7ae03372ab savegard the account_id against changes not triggered by the accounts-class, eg. via SyncML/xmlrpc 2006-07-09 22:46:58 +00:00
Ralf Becker
6e0605899e an other fix for check_perms (used via SyncML) 2006-07-09 20:07:09 +00:00
Ralf Becker
9e525b0989 re-read the owner in check_perms, if it's not set 2006-07-09 06:09:32 +00:00
Ralf Becker
a48b353c14 link_title method returns now null to indicate an entry does not exist (and all links can be deleted) or false if there are insufficent rights to view the title 2006-06-24 16:03:00 +00:00
Ralf Becker
185b151ae9 - fixed not working add of new accounts (due to addressbook acl, which allows not to add accounts via the addressbook)
- invalidate the cache of the accounts-class if contact-data of an account get changed
2006-06-21 23:12:45 +00:00
Ralf Becker
591444be4b dont update the content-history, if we run inside setup (admin-account-creation) 2006-06-18 05:03:35 +00:00
Ralf Becker
9f59a77b85 moved contact-data (firstname, lastname and email) from the account-table to the contact table:
- all (sql) accounts have now allways a contact associated with them (account_id is added as new column to the contacts table)
- contacts queries are simplefied a lot now, as no more join with the accouns-table, union and case when statesments are necessary
- lot of the special handling for accounts in the contacts class is no longer needed
- new contact-repository mode "sql-ldap" which additional writes all changes to the ldap repository, to allow to use it read-only from eg. thunderbird and still have the full sql speed and features within eGW (not yet fully working!)
==> requites update of API and addressbook to work (setup!)
2006-06-17 18:50:07 +00:00
Ralf Becker
ac102085ac fixed about deleting of accounts:
- prevent deleting of own account (as in admin)
- return for accounts account_id and _lid as the sql class does
- do not redirect to admin.uiaccounts.delete_user if no account_id set, as I deletes the current user ;-)
2006-06-14 16:53:14 +00:00
Ralf Becker
5e0d628d93 - added LDAP ACL stuff to the readme
- reworked Admin >> Addressbook >> Site config
- fixed for LDAP and SQL (eg. LDAP error are now forwarded to the UI)
2006-06-13 21:53:00 +00:00
Ralf Becker
2201a45d27 reworked and restructured LDAP support:
- addressbook now supports contacts in SQL and accounts in LDAP
- added supported objectClasses and a README in new doc dir
- ldap::quote() against LDAP query injection
- got jpegphoto in LDAP working (they are binary)
- we support now mozillaAbPersonAlpha and the older mozillaOrgPerson schema, beside inetOrpPerson and evolutionPerson
- added sorting, letter-search and limited result sets for LDAP
still missing is to disable the organisation stuff in the UI for LDAP
2006-06-13 04:30:16 +00:00
Ralf Becker
a4e33c20c1 fixed old method-name 2006-05-04 07:37:15 +00:00
Ralf Becker
6d6ec22c18 addressbook can now group contacts by organisations (sql only atm.) and change organisational fields for all organisation members 2006-04-30 09:34:24 +00:00
Ralf Becker
3780b08336 - added csv export
- fixed csv import
2006-04-26 21:23:38 +00:00
Ralf Becker
a696318869 - several bug fixes
- new HEAD install works
- update 1.2 works
- update 1.0 should work, but untested
2006-04-25 12:43:41 +00:00
Ralf Becker
2315bfc199 - regular search method used by index is called now search
- search for (not yet working) extended search is called now ex_search (will be replaced by search)
- some parameter cleanups
- some changes for the new API contacts class, which just extends the bocontacts class of addressbook
2006-04-24 20:52:14 +00:00
Ralf Becker
b6b3db5ed4 first version / step to the new 1.4 addressbook:
- User accounts are an own addressbook now
- every user and group (can) have an own addressbook
- for groups the accessrights no longer depend on the creator
- new acl for adding into an addressbook
- all addressbooks can be displayed together (eg. accounts mixed with personal and group AB's)
- some useful new fields (photo, private cellphone, ...) and some obscure ones have been removed
- db update puts all contacts in the owners personal addressbook (further manual migration tools will follow), thought the UI already allows to mass-move them into a group-addressbook
- group addressbooks in SQL are created by making a group-grant for addressbook (like filemanger)
- Warning: all import/export/xmlrpc/syncml stuff and other apps accessing the addressbook is broken until the contacts class in the API gets fixed!
- it depends on further updates of etemplate, phpgwapi, admin!
==> it's pretty cool (specialy the foto's), but NOT ready for a production server !!!
2006-04-23 14:40:31 +00:00
Ralf Becker
062d4531e0 fixed sometimes (no customfields) wrong redirects and NOT calling the content-history 2006-03-28 11:41:48 +00:00
Cornelius Weiß
4e9c822ed8 addressbook extension:
Admin can now define multiple addressbooks each with an own edit / view template and an own icon.
Atm. all Addressbooks are stored in one backend, but this will change soon^tm
2006-03-14 14:26:55 +00:00
Ralf Becker
15c845e0de fixed timezone handling in addressbook:
- db stores now server-time as everywhere in eGW
- contacts-class in the api and bocontacts in addressbook take and deliver user-time
- xmlrpc gives user-time as the other apps too
2006-03-07 22:43:08 +00:00