} require_once 'modules/RestaurantBookings/RestaurantBookings.php'; require_once 'data/Tracker.php'; require_once 'modules/Releases/Release.php'; global $db; global $app_strings; global $mod_strings; global $mod_strings; global $current_user; global $sugar_version, $sugar_config, $app_list_strings; $focus = new RestaurantBookings(); $seedRelease = new Release(); $json = getJSONobj(); $ss = new Sugar_Smarty(); if (isset($_REQUEST['record'])) { $focus->retrieve($_REQUEST['record']); } if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { $focus->id = ""; $focus->number = ""; } // BUILD MODULE TITLE LINE echo "\n<p>\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_NAME'] . ": " . $focus->name, true); echo "\n</p>\n"; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once $theme_path . 'layout_utils.php'; $GLOBALS['log']->info("RestaurantBookings edit view"); if (isset($_REQUEST['return_module'])) {
<?php if (!defined('sugarEntry') || !sugarEntry) { die('Not A Valid Entry Point'); } require_once 'modules/RestaurantBookings/RestaurantBookings.php'; require_once 'include/formbase.php'; require_once 'modules/RestaurantBookingsLine/RestaurantBookingsLine.php'; include "config.php"; global $sugar_config, $mod_strings; $focus = new RestaurantBookings(); $focus->retrieve($_POST['record']); if (!$focus->ACLAccess('Save')) { ACLController::displayNoAccess(true); sugar_cleanup(true); } if (!empty($_POST['assigned_user_id']) && $focus->assigned_user_id != $_POST['assigned_user_id'] && $_POST['assigned_user_id'] != $current_user->id) { $check_notify = TRUE; } else { $check_notify = FALSE; } foreach ($focus->column_fields as $field) { if (isset($_POST[$field])) { $value = $_POST[$field]; $focus->{$field} = $value; } } foreach ($focus->additional_column_fields as $field) { if (isset($_POST[$field])) { $value = $_POST[$field]; $focus->{$field} = $value;