Vincent Petry
0b5fb1bfc7
Fix to make it compatible with Sabre 2.1
...
Also fixed unit tests so they run but some still fail
- Added IUserSession mock
- Replaced OCP::getUser() with IUserSession usage to make the mock work
- Added base class for test cases
2015-03-17 12:53:05 +01:00
LEDfan
5fa823012e
Merge pull request #723 from ionum/master
...
extend func getIDFromUri => Issue #478
2015-03-12 19:26:51 +01:00
LEDfan
1642fa5419
Merge pull request #824 from martin-rueegg/martin-rueegg-avoid-offset-error
...
Avoid "Undefined offset: 0"
2015-03-12 14:31:06 +01:00
David Prévot
8280042bfe
Drop useless execution bits
2015-02-27 12:38:54 -04:00
Martin Rüegg
f941a30838
move comments to commit comment
...
// Not sure if I'm doing it wrongly, or if its supposed to return
// the info in an array?
// https://github.com/owncloud/core/blob/master/lib/private/share/share.php
// \-> getItemSharedWithBySource()
// \-> self::getItems()
// -> return array();
// or -> return formatResult();
// \-> https://github.com/owncloud/contacts/blob/master/lib/share/addressbook.php
// \-> formatItems()
// \--> which in turn also always returns an array
// thus $addressBook is an array. either empty or having one entry
2015-02-13 11:14:59 +01:00
Martin Rüegg
95cdb64b14
Avoid "Undefined offset: 0"
...
$addressBook is always an array. either empty or having one entry.
https://github.com/owncloud/contacts/issues/740
https://github.com/nerzhul/ocsms/issues/39
2015-02-13 04:25:48 +01:00
babelouest
ea0f5119db
improve import automatic selection
2015-01-29 09:42:22 -05:00
LEDfan
ff13e3e081
Merge pull request #751 from owncloud/fix_741
...
Use thumbnail cache instead of refreshing every time
2014-12-24 07:55:09 +01:00
LEDfan
308241a0f5
Merge pull request #706 from owncloud/fix_704
...
Fix the createOrUpdate function
2014-12-21 09:20:46 +01:00
LEDfan
8e23084254
Fix wrong parameter order
2014-12-20 13:48:22 +01:00
LEDfan
f322defadf
Use thumbnail cache instead of refreshing every time
2014-12-20 11:16:40 +01:00
Bjoern Schiessle
c5555e89c5
in oc8 or later share_backend need to implement isShareTypeAllowed()
2014-12-10 15:43:17 +01:00
LEDfan
3b70690e05
Create Update part
2014-12-07 14:01:39 +01:00
LEDfan
5a653a2a52
Use setPropertyByName
2014-12-07 09:22:13 +01:00
LEDfan
adfbbe3fbf
Directly return
2014-12-07 09:17:38 +01:00
LEDfan
ae69dbf74f
Fix identation
2014-12-07 09:17:38 +01:00
LEDfan
23a92e2b74
Fix the createOrUpdate function
2014-12-07 09:17:38 +01:00
babelouest
89c65e35a4
use tabs instead of space for indentation
2014-12-06 16:57:00 -05:00
babelouest
b90f05c0c6
fix bug with colon and space that made the import controller guess it's a ldif file instead of a vcard...
2014-12-06 16:42:34 -05:00
LEDfan
95bd2ff182
Merge pull request #621 from jakobsack/master
...
Move creation of default address book to backend
2014-12-05 07:45:49 +01:00
LEDfan
2ad05e3bdb
Merge pull request #710 from owncloud/fix_404
...
Fix 404 contact not found with shared addressbook
2014-12-05 07:33:58 +01:00
ionum
15d2d74246
extend func getIDFromUri
...
uri is no unique value; only combination of uri and addressbookid is unique
2014-12-01 13:16:52 +01:00
Morris Jobke
f6ac4ea683
migrate from OC_Preferences to DI config object
2014-11-28 16:51:10 +01:00
LEDfan
579819bee8
also search for shared contacts
2014-11-21 13:03:15 +01:00
LEDfan
b6cdd06db2
Fix double line
2014-11-21 11:47:09 +01:00
LEDfan
2e9dbc4a38
Remove uneeded func
2014-11-21 11:37:08 +01:00
LEDfan
bd9706756d
Use join instead of 2 queries
2014-11-21 11:36:28 +01:00
LEDfan
825884adc7
Refactor code to make it simpler
2014-11-21 11:06:54 +01:00
LEDfan
7ce883b33d
First step to fix 404's with a shared addressbook
2014-11-21 11:05:06 +01:00
Bernhard Reiter
66f8c5d882
Merge pull request #668 from ockham/share-contact-groups2
...
Share contact groups
2014-11-17 16:51:07 +01:00
Bernhard Reiter
ea7e3b4844
Load resources from template using script() and style() functions.
2014-11-08 16:35:22 +01:00
Bernhard Reiter
5728c8663b
Load md5 and Jcrop scripts and styles from their new locations.
...
They could not be loaded as they have been replaced by their bower
counterparts with
owncloud/core@49fbd766c2 and
owncloud/core@73569b29bc
2014-11-07 21:44:56 +01:00
Bernhard Reiter
8f23166955
Display correct number of contacts in shared addressbooks.
...
Fixes #654 .
2014-10-28 23:17:38 +01:00
Bernhard Reiter
d29a4b3179
Replace "if (is_null($a) || $a === '')" clauses by "if (empty($a))".
2014-10-23 21:30:09 +02:00
jbtbnl
e947469545
Merge pull request #628 from owncloud/issue-592
...
Add avatar and placeholder JavaScripts
2014-10-22 12:51:23 +02:00
Bernhard Reiter
9cdf7a57e7
Include shared groups.
...
Fixes #38 .
2014-10-11 01:47:49 +02:00
Bernhard Reiter
51d6783240
Fix and re-activate Contact sharing backend.
...
While not needed for actual contacts sharing (which is solely done via
the Addressbook sharing backend), we need its isValidSource() function
in core's \OC\Tags::getIdsForTag() (which implements \OCP\ITags::getIdsForTag()).
It is required there to test if the items that are tagged with a given
tag are actually allowed to be accessed by the user, i.e. owned by the
user or someone who is sharing it with the user.
2014-10-11 01:47:49 +02:00
Bernhard Reiter
c86dbf11b5
Delete groups by their id instead of their name.
2014-10-11 01:47:49 +02:00
Bernhard Reiter
83bc1eaadf
Prepare for sharing of contact groups.
2014-10-11 01:47:44 +02:00
Bernhard Reiter
74a8af09a2
Add displayName() to GroupController.
2014-10-10 17:55:46 +02:00
Jan-Christoph Borchardt
f71d66164f
Merge pull request #598 from tribut/fix-585
...
Use correct method to extract image from vcard
2014-10-10 12:33:00 +02:00
jbtbnl
9a869e40ca
Merge pull request #617 from owncloud/issue-616
...
Remove unnecessary log message
2014-10-04 10:38:12 +02:00
Bernhard Reiter
8a8ef10b61
Fix log output in purgeIndexes().
2014-10-01 21:06:57 +02:00
Bernhard Reiter
2db4e3b4e7
Fix Addressbook::childExists($id).
...
Return false instead of throwing an exception if there's no child with $id.
Also, add a test for that function.
2014-10-01 21:06:57 +02:00
Jörn Friedrich Dreyer
e426d7e867
fix class names
2014-10-01 18:08:53 +02:00
Jörn Friedrich Dreyer
7c54ac4f75
Delete searchprovider.php
...
no longer needed
2014-10-01 17:46:22 +02:00
Jörn Friedrich Dreyer
ea7f1545a7
Merge pull request #300 from owncloud/update_search_classes
...
Update search classes
2014-10-01 17:45:32 +02:00
Bernhard Reiter
51bc3fbe5f
Add a backslash to fix an error.
...
Plus a simple whitespace fix.
2014-10-01 13:58:28 +02:00
LEDfan
cd2d7573d9
Merge pull request #638 from owncloud/fix_404
...
Solve the 404 contact not found error #623
2014-09-28 10:03:06 +02:00
LEDfan
7478295db5
Fix additional 404's refs https://github.com/owncloud/contacts/issues/623#issuecomment-56631474
2014-09-25 08:08:50 +02:00