mirror of https://github.com/MISP/MISP
fix: [UI] Correctly update attribute timestamp
parent
c6d0737a90
commit
bcfe08c7cf
|
@ -1975,11 +1975,7 @@ class AttributesController extends AppController
|
|||
} elseif ($field === 'to_ids') {
|
||||
$result = ($result == 0 ? 'No' : 'Yes');
|
||||
} elseif ($field === 'timestamp') {
|
||||
if (isset($result)) {
|
||||
$result = date('Y-m-d', $result);
|
||||
} else {
|
||||
echo ' ';
|
||||
}
|
||||
$result = date('Y-m-d', $result);
|
||||
} elseif ($field === 'value') {
|
||||
$this->loadModel('Warninglist');
|
||||
$attribute['Attribute'] = $this->Warninglist->checkForWarning($attribute['Attribute']);
|
||||
|
|
|
@ -7,6 +7,6 @@ if ($field === 'value') {
|
|||
} else if ($value === 'Yes') {
|
||||
echo '<input type="checkbox" checked disabled>';
|
||||
} else {
|
||||
echo nl2br(h($value)) . ' ';
|
||||
echo nl2br(h($value), false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -72,7 +72,9 @@ $quickEdit = function($fieldName) use ($editScope, $object, $event) {
|
|||
<?php echo $this->element('/Events/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
<div id="Attribute_<?= $objectId ?>_timestamp_solid">
|
||||
<?= date('Y-m-d', $object['timestamp']) ?>
|
||||
</div>
|
||||
</td>
|
||||
<?php
|
||||
if (!empty($extended)):
|
||||
|
|
Loading…
Reference in New Issue