Correcion causas de plan
This commit is contained in:
parent
c3026c4fdd
commit
881783bd4f
@ -50,7 +50,7 @@ public function update(Request $request){
|
|||||||
$id_user = auth()->user()->id;
|
$id_user = auth()->user()->id;
|
||||||
if(CausasRaices::where(["id"=>$request->id])->exists()){
|
if(CausasRaices::where(["id"=>$request->id])->exists()){
|
||||||
$causa = CausasRaices::find($request->id);
|
$causa = CausasRaices::find($request->id);
|
||||||
$plan = plan::find($meta->id_plan);
|
$plan = plan::find($causa->id_plan);
|
||||||
if($plan->id_user == $id_user){
|
if($plan->id_user == $id_user){
|
||||||
$causa->descripcion = $request->descripcion;
|
$causa->descripcion = $request->descripcion;
|
||||||
$causa->save();
|
$causa->save();
|
||||||
|
Loading…
Reference in New Issue
Block a user