Пример #1
0
 /**
  * @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];
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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;
     }
 }
Пример #4
0
 /**
  * @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];
     }
 }
Пример #5
0
 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'];
 }
Пример #6
0
 public function fill_in_additional_detail_fields()
 {
     $this->fillInName();
     parent::fill_in_additional_detail_fields();
 }
Пример #7
0
 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();
 }
Пример #8
0
 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'];
         }
     }
 }
Пример #9
0
 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();
 }
Пример #10
0
 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;
             }
         }
     }
 }
Пример #11
0
 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
 }
Пример #12
0
 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
 }