Explorar o código

Update PM\PMDelete page

Visman %!s(int64=4) %!d(string=hai) anos
pai
achega
12e5ec980f
Modificáronse 1 ficheiros con 2 adicións e 4 borrados
  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');
                     ->message('Dialogue del redirect');
 
 
                 $topic->status = Cnst::PT_DELETED;
                 $topic->status = Cnst::PT_DELETED;
+
+                $this->pms->delete($topic);
             } else {
             } else {
                 $redirect = $this->c->Redirect
                 $redirect = $this->c->Redirect
                     ->url($post->linkPrevious)
                     ->url($post->linkPrevious)
                     ->message('Message del redirect');
                     ->message('Message del redirect');
 
 
                 $this->pms->delete($post);
                 $this->pms->delete($post);
-                $topic->calcStat();
             }
             }
 
 
-            $this->pms->update(Cnst::PTOPIC, $topic);
-            $this->pms->updateFromPTopics(false, $topic);
-
             return $redirect;
             return $redirect;
         }
         }