modified: SRC/app/Http/Controllers/ReferentController.php
deleted: SRC/resources/views/referent.blade_old.php
This commit is contained in:
@ -96,7 +96,14 @@ class ReferentController extends Controller {
|
||||
}
|
||||
|
||||
public function setListOeuvres ()
|
||||
{
|
||||
{
|
||||
$idListeOeuvre = Input::get('idListeOeuvre');
|
||||
$idconcats = Input::get('oeuvres');
|
||||
$list_oeuvres_id = explode("-", $idconcats);
|
||||
|
||||
$ListeOeuvre = ListeOeuvre::find($idListeOeuvre);
|
||||
$ListeOeuvre->oeuvres()->detach();
|
||||
$ListeOeuvre->oeuvres()->attach($list_oeuvres_id);
|
||||
return Response::json(array('sucess' => 'true', ));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user