コード例 #1
0
 *    (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * The Original Code is: SugarCRM Open Source
 * The Initial Developer of the Original Code is SugarCRM, Inc.
 * Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.;
 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 ********************************************************************************/
/*********************************************************************************
 * Description:
 ********************************************************************************/
require_once 'modules/Releases/Release.php';
$focus = new Release();
$focus->retrieve($_REQUEST['record']);
foreach ($focus->column_fields as $field) {
    if (isset($_REQUEST[$field])) {
        $focus->{$field} = $_REQUEST[$field];
    }
}
foreach ($focus->additional_column_fields as $field) {
    if (isset($_REQUEST[$field])) {
        $value = $_REQUEST[$field];
        $focus->{$field} = $value;
    }
}
$focus->save();
$return_id = $focus->id;
$edit = '';
if (isset($_REQUEST['return_module']) && $_REQUEST['return_module'] != "") {