]> source.dussan.org Git - nextcloud-server.git/commit
Fix share dropdown when links are not allowed
authorVincent Petry <pvince81@owncloud.com>
Thu, 21 Aug 2014 11:49:02 +0000 (13:49 +0200)
committerVincent Petry <pvince81@owncloud.com>
Thu, 21 Aug 2014 13:31:43 +0000 (15:31 +0200)
commitc38fcb520a3431f2f20d06126e86e9a457b28a70
tree967f191b8eca82ff06ca437cc627e857b2879d34
parent6c1e19b38662ffdfa03d06b8d54fde7b43f8f8ad
Fix share dropdown when links are not allowed

When links are not allowed, the email field does not exist and
autocomplete returns null. This causes Javascript errors.

The fix prevents entering the bogus block when links aren't allowed, as
it doesn't make sense to enter it in such cases anyway.

Backport of 98d06094e70d657907b139431624740acde3bbd9 from master
core/js/share.js
core/js/tests/specs/shareSpec.js