]> 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 11:49:02 +0000 (13:49 +0200)
commit98d06094e70d657907b139431624740acde3bbd9
tree7c65945f6f21d5a967d6a8e0787d2ba31cb60104
parent36c88e28307da569fea7a86d18ad559aa0b3f868
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.
core/js/share.js
core/js/tests/specs/shareSpec.js