diff --git a/apps/files_sharing/lib_share.php b/apps/files_sharing/lib_share.php index 1bf60f3b1dbef03ebcf68bfa50ea905d2b878068..0aae45e54ce4f47e41c173e8ac9c3d7a1ccbdd72 100644 --- a/apps/files_sharing/lib_share.php +++ b/apps/files_sharing/lib_share.php @@ -121,7 +121,7 @@ class OC_Share { } } else if (isset($uid)) { // TODO Check if this is necessary, only constructor needs it as IN. It would be better for other queries to just return =$uid - $in = "'".$uid."'"; + $in .= "'".$uid."'"; $groups = OC_Group::getUserGroups($uid); foreach ($groups as $group) { $in .= ", '".$uid."@".$group."'"; diff --git a/files/js/files.js b/files/js/files.js index f5a61a69a157ddfdac2c32a5bd7d4b3a0e1aa722..baf8debf48b8a302337c329dd6722983adaeb91b 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -27,7 +27,7 @@ $(document).ready(function() { }); // Sets the file link behaviour : - $('td.filename.name a').live('click',function(event) { + $('td.filename a').live('click',function(event) { event.preventDefault(); var filename=$(this).parent().parent().data('file'); if(!FileList.isLoading(filename)){