/** * @see SugarBean::fill_in_additional_detail_fields() */ public function fill_in_additional_detail_fields() { global $app_list_strings; global $img_name; global $img_name_bare; $this->uploadfile = $this->filename; // Bug 41453 - Make sure we call the parent method as well parent::fill_in_additional_detail_fields(); if (!$this->file_ext) { $img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext) . "_image_inline.gif"); $img_name_bare = strtolower($this->file_ext) . "_image_inline"; } //set default file name. if (!empty($img_name) && file_exists($img_name)) { $img_name = $img_name_bare; } else { $img_name = "def_image_inline"; //todo change the default image. } $this->file_url_noimage = $this->id; // Handle getting the status if the source of the status id field has // changed if (!empty($this->status_id)) { // Default value for the DLL source for this field $ddl_source = 'document_status_dom'; if (isset($this->field_defs['status_id']['options'])) { $ddl_source = $this->field_defs['status_id']['options']; } $this->status = $app_list_strings[$ddl_source][$this->status_id]; } }
public function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); if (empty($this->amount_usdollar) && !empty($this->amount)) { $this->amount_usdollar = SugarCurrency::convertWithRate($this->amount, $this->base_rate); } }
function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); //Ensure that the amount_usdollar field is not null. if (empty($this->amount_usdollar) && !empty($this->amount)) { $this->amount_usdollar = $this->amount; } }
/** * @see SugarBean::fill_in_additional_detail_fields() */ public function fill_in_additional_detail_fields() { global $app_list_strings; global $img_name; global $img_name_bare; $this->uploadfile = $this->filename; // Bug 41453 - Make sure we call the parent method as well parent::fill_in_additional_detail_fields(); if (!$this->file_ext) { $img_name = SugarThemeRegistry::current()->getImageURL(strtolower($this->file_ext) . "_image_inline.gif"); $img_name_bare = strtolower($this->file_ext) . "_image_inline"; } //set default file name. if (!empty($img_name) && file_exists($img_name)) { $img_name = $img_name_bare; } else { $img_name = "def_image_inline"; //todo change the default image. } $this->file_url_noimage = basename(UploadFile::get_url($this->filename, $this->id)); if (!empty($this->status_id)) { $this->status = $app_list_strings['document_status_dom'][$this->status_id]; } }
function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); // Fill in the assigned_user_name $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id); $this->created_by_name = get_assigned_user_name($this->created_by); $this->modified_by_name = get_assigned_user_name($this->modified_user_id); $account_info = $this->getAccount($this->id); $this->account_name = $account_info['account_name']; $this->account_id = $account_info['account_id']; }
public function fill_in_additional_detail_fields() { $this->fillInName(); parent::fill_in_additional_detail_fields(); }
function fill_in_additional_detail_fields() { if (!empty($_REQUEST['name'])) { $this->name = $_REQUEST['name']; } if (!empty($_REQUEST['oauth_token']) && !empty($_REQUEST['oauth_token_secret'])) { $this->oauth_token = $_REQUEST['oauth_token']; $this->oauth_token_secret = $_REQUEST['oauth_token_secret']; $this->api->setOAuthToken($_REQUEST['oauth_token'], $_REQUEST['oauth_token_secret']); } parent::fill_in_additional_detail_fields(); }
function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); if (!empty($this->id)) { $account_info = $this->getAccount($this->id); if (!empty($account_info)) { $this->account_name = $account_info['account_name']; $this->account_id = $account_info['account_id']; } } }
function fill_in_additional_detail_fields() { if (!empty($_REQUEST['name'])) { $this->name = $_REQUEST['name']; } if (!empty($_REQUEST['session_id'])) { $this->session_id = $_REQUEST['session_id']; } parent::fill_in_additional_detail_fields(); }
function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); if (!empty($_REQUEST['xinventory_req'])) { if (!empty($_REQUEST['operation'])) { $this->operation = $_REQUEST['operation']; } if (!empty($_REQUEST['xinventory_id'])) { $this->xinventory_id = $_REQUEST['xinventory_id']; $bean = BeanFactory::getBean('xInventories'); if ($bean->retrieve($this->xinventory_id)) { $this->xinventory_name = $bean->name; $this->name = $this->xinventory_name; } } } }
function fill_in_additional_detail_fields() { parent::fill_in_additional_detail_fields(); }
public function fill_in_additional_detail_fields() { $this->config = htmlspecialchars(json_encode($this->replaceKeyValueWithLabel(htmlspecialchars_decode($this->config)))); parent::fill_in_additional_detail_fields(); // TODO: Change the autogenerated stub }