Roberto Santini 1 vecka sedan
förälder
incheckning
6b7ef7f553
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      app/Http/Controllers/ProdottoController.php

+ 1
- 1
app/Http/Controllers/ProdottoController.php Visa fil

184
 
184
 
185
     private function syncTodos(Prodotto $prodotto, array $todos): void
185
     private function syncTodos(Prodotto $prodotto, array $todos): void
186
     {
186
     {
187
-        $prodotto->prodottoTodos()->delete();
187
+        $prodotto->todos()->delete();
188
 
188
 
189
         $ordine = 0;
189
         $ordine = 0;
190
         foreach ($todos as $row) {
190
         foreach ($todos as $row) {

Laddar…
Avbryt
Spara