Commit Graph

168 Commits

Author SHA1 Message Date
Nathan Gray
5bed43746f Fix for editing private categories 2011-06-15 14:20:43 +00:00
Nathan Gray
81f58ab129 - Change category group filtering to allow multiple groups
- Give warning when removing access from a group
2011-06-14 18:50:35 +00:00
Ralf Becker
a2d19164ee fix postgres error reported on devel list: PostgreSQL error with categories attrunk@34914 2011-05-16 14:25:17 +00:00
Ralf Becker
1b210da48d call all delete_category hook only for all apps, if cat is application-global 2011-02-15 13:03:39 +00:00
Ralf Becker
46c7b013b8 fixed bug introduce in fix: no more serialized cat data (like calendar colors) were returned 2010-10-26 07:41:47 +00:00
Ralf Becker
d10b7deaf3 SiteMgr bugfix: edit category always reads sort as 0, (unserialize data only, if it is serialized) 2010-10-25 18:08:07 +00:00
Klaus Leithoff
5c66c7d162 categories: better handling of editing/moving categories within the cat-tree 2010-10-14 15:33:10 +00:00
Ralf Becker
819ce52f90 reverted removing from delete call in add, as it does NOT take into account changed levels handled by delete 2010-10-14 08:18:41 +00:00
Klaus Leithoff
e8aef25f5b phpgwapi: call hooks of apps after deleting of categories to enable apps to clean up their use of affected categories 2010-10-13 07:39:53 +00:00
Ralf Becker
85475540f6 fixed not working update for application global categories, which for some reason got created with an owner != -1 2010-06-15 10:25:10 +00:00
Ralf Becker
958452ff95 Implementation of global categories limited to a certain group:
- from user perspectiv they are global cat like the existing ones
  (also comming in two flavors: global or for a certain app)
- admins can select to limit a global cat when they create it
--> all members of a given group have the cat as a global one
==> This does a silent modification of the categories table: 
global cats get changed from cat_owner=-1 to cat_owner=0 !!!
2010-01-31 03:36:01 +00:00
Ralf Becker
43553a0226 - depricated return_single($cat_id) in favor of read($cat_id) return not
an array with a single cat, but just the cat
- read($cat_id) and id2name($cat_id,'data') return now data as array
- edit($cat) and add($cat) now serialize data, if it's an array
- return*() have optional parameter to return data as array (default is
  still to return it serialized)
- new constants categories::GLOBAL_APPNAME='phpgw' and
  categories::GLOBAL_ACCOUNT=-1 (the later will change in the next step)
2010-01-30 23:50:51 +00:00
Christian Binder
30fd54c4ac central method in categories class to check a given list of category ids for needed permission 2009-11-26 08:24:51 +00:00
Christian Binder
cdd50f6b55 new method check_perms for categories class 2009-11-18 07:42:14 +00:00
Christian Binder
da7db21806 also match against trimmed database entries when categories should be searched by $filter 2009-11-16 06:54:03 +00:00
Christian Binder
5dbc859f71 fixed missing $this-> operator which prevented ACL read on sync - let categories class always enumerate group ACLs (it was skipped for LDAP backends) 2009-11-13 09:55:54 +00:00
Ralf Becker
c133b4b106 "- docu update
- using public and private for class vars
- __construct()"
2009-05-14 07:59:51 +00:00
Ralf Becker
b8cfd7f85d "allow to use same names for add() and edit() as returned by read_single() or return_array" 2009-05-13 21:21:46 +00:00
Ralf Becker
b413a39b49 "some more compatibility stuff (table-name as variable)" 2009-02-25 14:35:43 +00:00
Ralf Becker
8ff2025051 "resetting array pointer for old code relying on it" 2009-02-25 12:59:28 +00:00
Ralf Becker
a40b1c6bfb Reworked the categories class to query all cats from the database once
per session and then operate on that cache.
This deliminates ~25 database queries for each sitemgr page.

Test carefully before applying this to a production sytem!
2008-12-17 20:05:19 +00:00
Ralf Becker
f3181308c5 "added quoting" 2008-04-16 11:37:47 +00:00
Ralf Becker
426fc2825e "using the global db object" 2008-03-15 14:52:26 +00:00
Cornelius Weiß
86f6654c8c fix the "to many categories" problem with ldap backend 2008-02-12 15:55:26 +00:00
Lars Kneschke
51f14c8d82 don't resolve group grants when using the addressbook, as resolving group memberships is currently extremly slow, with bigger installations
maybe we can also fix it different
2008-02-08 11:19:41 +00:00
Ralf Becker
b2be83b0da new id2name parameter $item="path" to get a / delimited path of the cat hierarchy (names of the parents) 2008-02-07 02:40:43 +00:00
Ralf Becker
b3f40cdff8 "added missing default for new $strip parameter of categories::name2id() added by Patric, to be compatible with the current code not giving that parameter and generating warnings because of that
Thanks to regime2000-at-gmx.de from the German list."
2007-12-20 19:13:55 +00:00
Patrick Bihan-Faou
d97f1eed5e Extend the patch to get_categories in infolog submitted by matthias to the other classes as well.
Added a hack that allows one to search for the categories' names prefixed by X-
Sony Ericsson phones (and possibly others) systematically prepend a X- to the 
category names, so with this patch we match X-CatName just like CatName

This is only done for SyncML obviously.
2007-12-11 09:29:50 +00:00
Patrick Bihan-Faou
bb20c359f2 The formated_list function in phpgwapi/inc/class.categories.inc.php was
renamed to formatted_list a while ago. There is no need to keep dead code
around.
2007-11-27 17:14:54 +00:00
Ralf Becker
ea3994993d fixed not returned global and other user cats in name2id (eg. if contacts stored in LDAP or SyncML), the so far only returned personal and application global cats have priority 2007-10-07 07:00:03 +00:00
Ralf Becker
dc68edab46 fixed csv import:
- no more caching in the cat_id function, as it's done in the categories class in the API no
- categories::name2id no longer caches not found entries, as they might be added in this request
- contacts_sql::add set's all unset telefon numbers to '', to avoid the stupid db-default '+1 (000) 000-0000', which I dont want to change in the stable release
2006-04-14 09:50:39 +00:00
Ralf Becker
db1a32aa33 fix for bug [ 1446044 ] eGw asking for delete sub-categories when it not exists 2006-03-10 09:53:10 +00:00
Ralf Becker
5f625f4289 fixed bug: privat cats were not returned / shown 2005-12-02 20:29:49 +00:00
Ralf Becker
e9bbdad358 fixed bug: only 2 levels of categories get returned 2005-11-23 23:01:28 +00:00
Ralf Becker
090dc5c1da shorten the category names, by not appending <Global [App]> anymore, instead we use a symbol (diamond) to indicate a non-user cat 2005-11-11 23:05:35 +00:00
Ralf Becker
bd325a811f fix for bug reported by Oscar on the list: category query of categories::return_array ended with AND 2005-11-09 06:53:51 +00:00
Ralf Becker
263caae5e8 missing param 2005-11-08 10:10:36 +00:00
Ralf Becker
a0beab57d4 fixed bug reported by Lutz on the german list (missing AND before filter in return_array) 2005-11-08 05:07:37 +00:00
Ralf Becker
ae9ae56e30 fix for the segfaults happening since the last commits in several apps: function was calling itself ;-) 2005-11-07 09:30:33 +00:00
Ralf Becker
c4db9872c2 it was definitly to late last night ;-) 2005-11-06 09:09:05 +00:00
Ralf Becker
9de4dcd476 typo 2005-11-06 07:38:27 +00:00
Ralf Becker
7635fb25c9 phpgw_categories --> egw_categories plus reworked categories class 2005-11-05 22:58:51 +00:00
Ralf Becker
c591c2c221 fixed / added mssql support for egw and fixed some other Windows probs on the way ;-)
- knowledgebase is not working: select distinct is not possible with text-columns
- fudforum is not working: is does not use ADOdb and has no own db-layer for mssql
- other apps seem to work, everthing needs through testing - incl. our "old" db's
2004-07-25 01:41:37 +00:00
Ralf Becker
da83e39c89 fixed creation of sub-cats, to automaticaly set the main-cat (as it already set the level) from the parent 2004-05-24 09:29:30 +00:00
reinerj
48f840d7de move from old projct to new one 2004-05-05 12:06:13 +00:00
Lars Kneschke
56ae9c191a fix for
Warning: preg_match() expects at least 2 parameters, 1 given in
/var/www/www.phpgw.de/htdocs/egroupware/phpgwapi/inc/class.categories.inc.php on line 164
2004-04-05 06:04:07 +00:00
Ralf Becker
f68cd32ede as talked with lars and Stephan Hilchenbach from the german list ;-) 2004-04-04 22:21:26 +00:00
alpeb
1dd27ea7c0 fix id2name not returning cat_name. This avoided category names to be shown in phpbrain 2004-01-16 17:57:19 +00:00
Miles Lott
5dbef396f9 Appears to fix problems with bad data sent to a couple of functions, causing bad SQL generation 2004-01-02 22:49:10 +00:00
Ralf Becker
5f91c1c62c fixed bug in id2name 2003-12-23 22:24:55 +00:00