Correcion causas de plan

master
cgonzalesmo 2022-08-16 22:20:04 -05:00
parent c3026c4fdd
commit 881783bd4f
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class CausasRaicesController extends Controller
$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();