modifié : SRC/app/Http/Controllers/ReferentController.php

modifié :         SRC/public/js/ListeOeuvre.js
	modifié :         SRC/resources/views/referent.blade.php
This commit is contained in:
sidya82
2015-02-19 19:20:13 +01:00
parent 4fac5f8726
commit 1ecdc1b3ff
3 changed files with 10 additions and 7 deletions

View File

@ -97,14 +97,15 @@ 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', ));
return Response::json(array());
}
}