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:
Matias Didier 2023-05-16 09:48:56 +00:00
commit 9603e98903
1 changed files with 2 additions and 4 deletions

View File

@ -517,14 +517,12 @@ $data_opcional->class = 'floating_form';
$agentAdditionalContent = ''; $agentAdditionalContent = '';
// Position Information. // Position Information.
if ((bool) $config['activate_gis'] === true) { if ((bool) $config['activate_gis'] === true) {
$data_opcional->data['agent_position'][0] = __('Position (Long, Lat)');
$dataPositionAgent = gis_get_data_last_position_agent( $dataPositionAgent = gis_get_data_last_position_agent(
$agent['id_agente'] $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( $dataOptionalOutput = html_print_anchor(
[ [
'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente='.$id_agente, 'href' => 'index.php?sec=estado&sec2=operation/agentes/ver_agente&tab=gis&id_agente='.$id_agente,