Skip to content

Commit

Permalink
Fix issue with unlocking a single file from the admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
orzuionut committed Dec 4, 2018
1 parent 5d7c845 commit 403d516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions w2g2/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ $(document).ready(function(){
if ( ! lockFile) {
return;
}

var data = {
action: 'one',
lockedFileId: lockFile
id: lockFile
};

$.ajax({
Expand Down
2 changes: 1 addition & 1 deletion w2g2/lib/Controller/LockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function index($files)
*
* @param $id
* @param $fileType
* @return DataResponse
* @return JSONResponse
*/
public function store($id, $fileType)
{
Expand Down

0 comments on commit 403d516

Please sign in to comment.