mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2026-07-26 22:39:11 +08:00
Merge commit 'de4bf25cb3' into release/8.4.0-beta
# Conflicts:
# public/legacy/data/SugarBean.php
# public/legacy/include/Smarty/plugins/function.sugarvar.php
# public/legacy/include/SugarDateTime.php
# public/legacy/include/database/MysqliManager.php
# public/legacy/modules/Alerts/metadata/listviewdefs.php
# public/legacy/modules/SugarFeed/Dashlets/SugarFeedDashlet/SugarFeedDashlet.php
# public/legacy/modules/Trackers/metadata/SearchFields.php
# public/legacy/modules/Trackers/metadata/listviewdefs.php
# public/legacy/modules/UpgradeWizard/SugarMerge/EditViewMerge.php
# public/legacy/suitecrm_version.php
35 lines
966 B
PHP
Executable file
35 lines
966 B
PHP
Executable file
<?php
|
|
|
|
// modules/jjwg_Areas/controller.php
|
|
|
|
include_once('include/utils.php');
|
|
|
|
#[\AllowDynamicProperties]
|
|
class jjwg_AreasController extends SugarController
|
|
{
|
|
public function action_area_edit_map()
|
|
{
|
|
$this->view = 'area_edit_map';
|
|
$jjwg_Areas = get_module_info('jjwg_Areas');
|
|
|
|
// Get the map object
|
|
if (is_guid($_REQUEST['id'])) {
|
|
$jjwg_Areas->retrieve($_REQUEST['id']);
|
|
}
|
|
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
|
|
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
|
|
}
|
|
|
|
public function action_area_detail_map()
|
|
{
|
|
$this->view = 'area_detail_map';
|
|
$jjwg_Areas = get_module_info('jjwg_Areas');
|
|
|
|
// Get the map object
|
|
if (is_guid($_REQUEST['id'])) {
|
|
$jjwg_Areas->retrieve($_REQUEST['id']);
|
|
}
|
|
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
|
|
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
|
|
}
|
|
}
|