modified: SRC/app/Http/Controllers/ReferentController.php

deleted:    SRC/resources/views/referent.blade_old.php
This commit is contained in:
Malibu
2015-02-19 18:39:44 +01:00
parent 127f3dad65
commit b54fd5e95f
2 changed files with 8 additions and 146 deletions

View File

@ -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', ));
}