Skip to content
Snippets Groups Projects
Commit 47361cce authored by Pastor Mickaël's avatar Pastor Mickaël
Browse files

Related to Comptoir/Comptoir-srv#415 -> remove useless function again

parent cc94d2e8
No related branches found
No related tags found
No related merge requests found
......@@ -120,22 +120,4 @@ class ScreenshotsController extends AppController
}
return $this->redirect(['action' => 'index']);
}
/**
* Returns all screenshots for a specific software
* @param Integer $id
*/
public function getScreenshotsBySoftwareId($id=null) {
if ($id!=null && $this->request->is( 'get' ) && $this->response->type('json')) {
$screenshotsSoftwares = $this->Screenshots->find('all', [
'conditions' => ["software_id = "=> $id,'url_directory !=' =>'null']
]);
$this->set(compact('screenshotsSoftwares','id'));
$this->set('_serialize', ['screenshotsSoftwares','id']);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment