Merge branch 'ent-2516-api-listar-y-crear-modulos-de-inventario-6170-eucomm' into 'develop'

Added centralized error code to API

See merge request artica/pandorafms!2140

Former-commit-id: ed554c7874589d8ca5fe040b9433a8befc12a6e8
This commit is contained in:
Alejandro Fraguas 2019-01-24 16:46:09 +01:00
commit 19268bad59
1 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,10 @@ function returnError($typeError, $returnType = 'string') {
returnData($returnType,
array('type' => 'string', 'data' => __('No data to show.')));
break;
case 'centralized':
returnData($returnType,
array('type' => 'string', 'data' => __('This console is not manager of this environment, please manage this feature from centralized manager console (Metaconsole).')));
break;
default:
returnData("string",
array('type' => 'string', 'data' => __($returnType)));