Merge branch 'ent-11118-no-gis-data-esa-caja-no-se-debe-ver-si-no-hay-datos-gis' into 'develop'
Ent 11118 no gis data esa caja no se debe ver si no hay datos gis See merge request artica/pandorafms!5844
This commit is contained in:
commit
9603e98903
|
@ -517,14 +517,12 @@ $data_opcional->class = 'floating_form';
|
|||
$agentAdditionalContent = '';
|
||||
// Position Information.
|
||||
if ((bool) $config['activate_gis'] === true) {
|
||||
$data_opcional->data['agent_position'][0] = __('Position (Long, Lat)');
|
||||
$dataPositionAgent = gis_get_data_last_position_agent(
|
||||
$agent['id_agente']
|
||||
);
|
||||
if (is_array($dataPositionAgent) === true && $dataPositionAgent['stored_longitude'] !== '' && $dataPositionAgent['stored_longitude'] !== '') {
|
||||
$data_opcional->data['agent_position'][0] = __('Position (Long, Lat)');
|
||||
|
||||
if ($dataPositionAgent === false) {
|
||||
$data_opcional->data['agent_position'][1] = __('There is no GIS data.');
|
||||
} else {
|
||||
$dataOptionalOutput = html_print_anchor(
|
||||
[
|
||||
'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente='.$id_agente,
|
||||
|
|
Loading…
Reference in New Issue