- fixed signature groupId/typeId "overwriting" for already known signatures. closed #207

- improved system search dialog. Added trim(); before "api/signatures-> search" request
This commit is contained in:
Exodus4D
2016-06-25 22:20:13 +02:00
parent e16b507ef0
commit bfcf7fced3
3 changed files with 10 additions and 2 deletions

View File

@@ -162,6 +162,14 @@ class Signature extends Controller\AccessController{
unset( $data['typeId'] );
}
// "sig reader" should not overwrite signature group information
if(
$data['groupId'] == 0 &&
$signature->groupId > 0
){
unset($data['groupId']);
}
$newData = $data;
}

View File

@@ -63,7 +63,7 @@ define([
ajax: {
url: function(params){
// add params to URL
return Init.path.searchSystem + '/' + params.term;
return Init.path.searchSystem + '/' + params.term.trim();
},
dataType: 'json',
delay: 250,

View File

@@ -63,7 +63,7 @@ define([
ajax: {
url: function(params){
// add params to URL
return Init.path.searchSystem + '/' + params.term;
return Init.path.searchSystem + '/' + params.term.trim();
},
dataType: 'json',
delay: 250,