mirror of https://github.com/MISP/MISP
Merge branch 'develop' of github.com:MISP/MISP into develop
commit
472cfab3c7
|
@ -153,8 +153,12 @@ class EventReport extends AppModel
|
|||
{
|
||||
$errors = array();
|
||||
if (!isset($report['EventReport']['uuid'])) {
|
||||
$errors[] = __('Event Report doesn\'t have an UUID');
|
||||
return $errors;
|
||||
if ($fromPull) {
|
||||
$report['EventReport']['uuid'] = $attribute['uuid'] = CakeText::uuid();
|
||||
} else {
|
||||
$errors[] = __('Event Report doesn\'t have an UUID');
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
$report['EventReport']['event_id'] = $eventId;
|
||||
$existingReport = $this->find('first', array(
|
||||
|
|
|
@ -52,6 +52,18 @@
|
|||
echo $this->Form->input('confirm_password', array('type' => 'password', 'div' => array('class' => 'input password required')));
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
$isTotp = isset($this->request->data['User']['totp']) ? true : false;
|
||||
if ($isTotp) {
|
||||
echo sprintf(
|
||||
'<div class="clear"><span role="button" tabindex="0" aria-label="%s" onclick="openGenericModal(\'%s/users/totp_delete/%s\')" class="btn btn-inverse" style="margin-bottom:10px;">%s</span></div>',
|
||||
__('Delete TOTP token'),
|
||||
h($baseurl),
|
||||
h($this->request->data['User']['id']),
|
||||
__('Delete TOTP token')
|
||||
);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<?php
|
||||
|
|
|
@ -95,6 +95,9 @@ class EventGraph {
|
|||
// });
|
||||
});
|
||||
|
||||
this.network.on("doubleClick", function (params) {
|
||||
eventGraph.expand_node(params.nodes[0]);
|
||||
});
|
||||
this.network.on("dragStart", function (params) {
|
||||
eventGraph.physics_state(false);
|
||||
eventGraph.physics_activate_physics_for_nodes(params.nodes);
|
||||
|
|
|
@ -1132,7 +1132,7 @@ function mergeNodeAndModuleFilters(node, moduleFilters) {
|
|||
|
||||
/* API */
|
||||
function fetchWorkflow(id, callback) {
|
||||
var url = '/workflows/view/' + id + '.json'
|
||||
var url = baseurl + '/workflows/view/' + id + '.json'
|
||||
$.ajax({
|
||||
beforeSend: function () {
|
||||
toggleEditorLoading(true, 'Loading workflow')
|
||||
|
|
Loading…
Reference in New Issue