Visman 4 лет назад
Родитель
Сommit
12e5ec980f
1 измененных файлов с 2 добавлено и 4 удалено
  1. 2 4
      app/Models/Pages/PM/PMDelete.php

+ 2 - 4
app/Models/Pages/PM/PMDelete.php

@@ -92,18 +92,16 @@ class PMDelete extends AbstractPM
                     ->message('Dialogue del redirect');
 
                 $topic->status = Cnst::PT_DELETED;
+
+                $this->pms->delete($topic);
             } else {
                 $redirect = $this->c->Redirect
                     ->url($post->linkPrevious)
                     ->message('Message del redirect');
 
                 $this->pms->delete($post);
-                $topic->calcStat();
             }
 
-            $this->pms->update(Cnst::PTOPIC, $topic);
-            $this->pms->updateFromPTopics(false, $topic);
-
             return $redirect;
         }