Commit Graph

51 Commits

Author SHA1 Message Date
Aleksander Machniak
f2688ba492 Use ?? operator where applicable 2021-09-21 19:12:06 +02:00
Aleksander Machniak
5043255f7e Example_addressbook: Various improvements and fixes 2021-06-09 15:33:40 +02:00
Aleksander Machniak
7ac269f775 Prevent contact email reset on update with invalid vcard (#7132) 2021-05-30 11:16:24 +02:00
Michael Stilkerich
0608af9814 phpdoc type annotations to aid static analysis tools (#7957) 2021-03-21 14:39:17 +01:00
Michael Stilkerich
ae3f9c215e Improve preciseness of some PHPdoc annotations (#7809) 2021-01-09 10:05:46 +01:00
Aleksander Machniak
f4ed1024dc PHP8 fixes, CS fixes, short array syntax, tests 2020-12-02 20:15:00 +01:00
Aleksander Machniak
66ca4f0f72 CS fixes, PHP8 fixes, short array syntax, tests 2020-11-30 14:03:11 +01:00
Aleksander Machniak
37d75d96a3 Short array syntax, CS fixes 2020-11-27 19:51:33 +01:00
Aleksander Machniak
97991b59be Add more tests for contact actions, fix various code issues 2020-11-05 11:59:02 +01:00
Aleksander Machniak
318f91417f Add rcube_utils::explode() 2020-11-02 09:02:38 +01:00
Aleksander Machniak
e2572b8984 PHP8 compat. fixes, added some tests 2020-11-02 08:55:42 +01:00
Aleksander Machniak
9713ce364c Automatically collected recipients and trusted senders (#6904)
Added configurable Collected Recipients addressbook source (#4971)
Added configurable Trusted Senders addressbook source (#5046)
Added 'contact_exists' hook
2020-09-20 10:00:08 +02:00
Aleksander Machniak
a5c2b4360c Fixes in context of undefined variables, and code style 2020-08-15 12:13:31 +02:00
Aleksander Machniak
66fab8cdb2 CS fixes, Avoid usused variables, fixed minor bugs 2019-10-05 19:44:39 +02:00
Aleksander Machniak
1afa46d28d PHPDoc and CS fixes 2019-08-25 14:15:09 +02:00
Jack Cherng
198585d8a0 Fix implode() wrong parameter order (#6866)
It has been deprecated in PHP 7.4.

Such as PHP deprecated:  implode(): Passing glue string after array is deprecated. Swap the parameters in /var/www/roundcubemail/program/lib/Roundcube/rcube_db.php on line 917

Signed-off-by: Jack Cherng <jfcherng@gmail.com>
2019-08-09 16:04:51 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Stefanos Petrakis
8ab1e4fbc3 Fix multiple VCard field search (#6466) 2018-10-02 16:29:18 +02:00
Aleksander Machniak
e04f72d018 Fix PHP 7.2 warnings on count() use (#5845) 2017-07-09 13:20:57 +02:00
Aleksander Machniak
6ad4ebe431 Fix SQL syntax error on MariaDB 10.2 (#5774) 2017-05-28 20:23:13 +02:00
Aleksander Machniak
59e5cef08c Allow contacts without an email address (#5079) 2017-05-17 09:25:31 +02:00
Aleksander Machniak
184de7735c CS fixes (mostly phpdoc) 2016-08-18 08:50:59 +02:00
Aleksander Machniak
55cdf1569e Support contact+group searches in all relevant places (T1360)
Before the search worked only in Addressbook, not also in Compose.
The point of the change is also to align group searches with contact searches
in that it now uses the same set of attributes. Previously groups
in Compose were searched by name only.
2016-08-08 07:12:39 -04:00
Aleksander Machniak
f466899d8d Simplified code 2016-05-31 09:18:44 +02:00
Aleksander Machniak
7864a98f08 Fix searching by email address in contacts with multiple addresses (#5291) 2016-05-31 09:01:57 +02:00
Aleksander Machniak
52106ffd39 Fix bug where rcube_contacts::get_record() could return cached result when requested record wasn't found (#5218) 2016-04-20 20:25:23 +02:00
Aleksander Machniak
6f2c007d1b CS fixes: Replace use of "bool ? true : false" with just "bool" 2016-04-02 13:02:55 +02:00
Aleksander Machniak
7e3298753a Use ternary operator where aplicable 2015-11-14 10:08:07 +01:00
Thomas Bruederli
db390a27fb Do not tokenize search string when querying in strict mode (#1490504) 2015-09-14 20:09:17 +02:00
Aleksander Machniak
a958748947 CS fixes 2015-06-07 15:26:33 +02:00
Thomas Bruederli
aafc050f55 Fix rcube_contacts::search() calls with empty search string but $required argument 2015-03-09 17:17:04 +01:00
Thomas Bruederli
8e333bcb66 Only normalize search term when searching in 'words' column 2015-03-03 16:35:01 +01:00
Thomas Bruederli
3bd0277261 Fix full-text searching in a given list of fields 2015-03-03 16:28:10 +01:00
Thomas Bruederli
fd259bed69 Adapt fulltext search in local address book to ignore words order 2015-03-03 15:52:14 +01:00
Aleksander Machniak
bd82526e41 Fix missing or not up-to-date CATEGORIES entry in vCard export (#1490277) 2015-02-22 10:43:48 +01:00
Aleksander Machniak
9e4246d957 Code improvements and fixes (mostly unused variables and methods) 2014-11-16 14:04:53 +01:00
Aleksander Machniak
34a0902089 Use consistent column/table quoting in sql queries 2014-09-12 14:37:51 +02:00
Aleksander Machniak
740b8ea74a Fix bug where contacts with no email address were listed on compose addressbook (#1489970) 2014-07-05 13:41:21 +02:00
Aleksander Machniak
029f7a157d Clarify update() result description, return boolean when ID didn't change 2013-12-08 09:39:33 +01:00
Aleksander Machniak
18b40c1a32 Fix issue where groups were not deleted when "Replace entire addressbook" option on contacts import was used (#1489420) 2013-12-04 13:58:43 +01:00
Aleksander Machniak
51fe045a04 Fix deprecated function usage 2013-11-18 11:08:20 +01:00
Thomas Bruederli
a693639613 Require name or email for sql address book only 2013-10-19 15:51:12 +02:00
Thomas Bruederli
52830ea605 Improve handling of date strings and DateTime values in contacts 2013-09-10 23:37:10 +02:00
Aleksander Machniak
ec43311423 Fix so addressbook_search_mode works also for group search (#1489079) 2013-05-01 09:46:29 +02:00
Aleksander Machniak
40d419d994 Fix removal of a contact from a group in LDAP addressbook (#1489081) 2013-04-30 19:28:07 +02:00
Aleksander Machniak
7652687692 Fix DB error when creating a new contact and a group is selected (#1489051) 2013-04-19 08:35:08 +02:00
Aleksander Machniak
3e3767138e Rename $date_types -> $date_cols 2013-01-07 15:26:02 +01:00
Aleksander Machniak
83f7077ec9 Fix searching by date in address book (#1488888) 2013-01-07 14:21:25 +01:00
Aleksander Machniak
d2534c63f2 Cleanup, remove file paths from doc 2012-12-18 09:07:00 +01:00
Aleksander Machniak
a92beb6bdb Define RCUBE_CHARSET in place of RCMAIL_CHARSET for naming consistency 2012-11-27 08:43:43 +01:00