mirror of https://github.com/MISP/MISP
fix: [decaying:.json] Restored working behavior of `.json` views
parent
7be53e6b5b
commit
b6e84f74d4
|
@ -141,7 +141,7 @@ class DecayingModelController extends AppController
|
|||
}
|
||||
$passedArgsArray = $this->__setIndexFilterConditions($this->passedArgs);
|
||||
$this->set('passedArgsArray', $passedArgsArray);
|
||||
$this->set('decayingModel', $this->paginate());
|
||||
$this->set('decayingModels', $this->paginate());
|
||||
}
|
||||
|
||||
public function add()
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
<th class="actions"><?php echo __('Actions');?></th>
|
||||
<?php endif; ?>
|
||||
</tr><?php
|
||||
foreach ($decayingModel as $item): ?>
|
||||
foreach ($decayingModels as $item): ?>
|
||||
<tr>
|
||||
<td class="short"><a href="<?php echo $baseurl."/decayingModel/view/".$item['DecayingModel']['id']; ?>"><?php echo h($item['DecayingModel']['id']); ?> </a></td>
|
||||
<td class="short">
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
<?php
|
||||
echo (json_encode($decayingModels));
|
|
@ -1,2 +1,2 @@
|
|||
<?php
|
||||
echo (json_encode($decayingModel));
|
||||
echo (json_encode($decaying_model));
|
||||
|
|
Loading…
Reference in New Issue