File tree Expand file tree Collapse file tree 6 files changed +10
-7
lines changed
packages/Webkul/Admin/src Expand file tree Collapse file tree 6 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,9 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
362362 foreach ($ leads as $ lead ) {
363363 Event::dispatch ('lead.update.before ' , $ lead ->id );
364364
365- $ this ->leadRepository ->update (
366- ['lead_pipeline_stage_id ' => $ massUpdateRequest ->input ('value ' )],
367- $ lead ->id ,
368- ['lead_pipeline_stage_id ' ]
369- );
365+ $ lead = $ this ->leadRepository ->find ($ lead ->id );
366+
367+ $ lead ?->update(['lead_pipeline_stage_id ' => $ massUpdateRequest ->input ('value ' )]);
370368
371369 Event::dispatch ('lead.update.before ' , $ lead ->id );
372370 }
@@ -376,7 +374,7 @@ public function massUpdate(MassUpdateRequest $massUpdateRequest): JsonResponse
376374 ]);
377375 } catch (\Exception $ th ) {
378376 return response ()->json ([
379- 'message ' => trans ('admin::app.leads.destroy -failed ' ),
377+ 'message ' => trans ('admin::app.leads.update -failed ' ),
380378 ], 400 );
381379 }
382380 }
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'تم إنشاء العميل المحتمل بنجاح. ' ,
16561656 'update-success ' => 'تم تحديث العميل المحتمل بنجاح. ' ,
1657+ 'update-failed ' => 'Leads can not be deleted. ' ,
16571658 'destroy-success ' => 'تم حذف العميل المحتمل بنجاح. ' ,
16581659 'destroy-failed ' => 'لا يمكن حذف العميل المحتمل. ' ,
16591660
Original file line number Diff line number Diff line change 16531653
16541654 'leads ' => [
16551655 'create-success ' => 'Lead created successfully. ' ,
1656- 'update-success ' => 'Lead updated successfully. ' ,
1656+ 'update-success ' => 'Leads updated successfully. ' ,
1657+ 'update-failed ' => 'Leads can not be deleted. ' ,
16571658 'destroy-success ' => 'Lead deleted successfully. ' ,
16581659 'destroy-failed ' => 'Lead can not be deleted. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'Lead creado exitosamente. ' ,
16561656 'update-success ' => 'Lead actualizado exitosamente. ' ,
1657+ 'update-failed ' => 'No se pueden eliminar los clientes potenciales. ' ,
16571658 'destroy-success ' => 'Lead eliminado exitosamente. ' ,
16581659 'destroy-failed ' => 'No se puede eliminar el lead. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'سرنخ با موفقیت ایجاد شد. ' ,
16561656 'update-success ' => 'سرنخ با موفقیت بهروزرسانی شد. ' ,
1657+ 'update-failed ' => 'سرنخها قابل حذف نیستند. ' ,
16571658 'destroy-success ' => 'سرنخ با موفقیت حذف شد. ' ,
16581659 'destroy-failed ' => 'سرنخ قابل حذف نیست. ' ,
16591660
Original file line number Diff line number Diff line change 16541654 'leads ' => [
16551655 'create-success ' => 'Lead başarıyla oluşturuldu. ' ,
16561656 'update-success ' => 'Lead başarıyla güncellendi. ' ,
1657+ 'update-failed ' => 'Potansiyel müşteriler silinemez. ' ,
16571658 'destroy-success ' => 'Lead başarıyla silindi. ' ,
16581659 'destroy-failed ' => 'Lead silinemedi. ' ,
16591660
You can’t perform that action at this time.
0 commit comments