Hello there,
I'm using the mark_deleted function from a custom module. The problem is that this error is showing up:
Catchable fatal error: Object of class Link could not be converted to string in C:\xampp\htdocs\Sugar-SII\data\SugarBean.php on line 1797
The line 1797 is the next:
This is from a function called save_relationship_changes.PHP Code:$GLOBALS['log']->debug("save_relationship_changes(): From field_defs - attempting to add a relationship record - {$def [ 'link' ]} = {$this->$def [ 'id_name' ]}" );
I comment out this line but another error pops up:
Catchable fatal error: Object of class Link could not be converted to string in C:\xampp\htdocs\Sugar-SII\data\Link.php on line 734
This line is the next one:
What causes these errors???PHP Code:function _insert_row(&$value_array) {
//add key column
$value_array['id']= create_guid();
$columns_list='';
$values_list='';
$delimiter='';
foreach ($value_array as $key=>$value) {
$columns_list.=$delimiter.$key;
$values_list .=$delimiter."'".$value."'"; //THIS THE LINE 734
$delimiter=",";
}
$insert_string='INSERT into '.$this->_relationship->join_table.' ('.$columns_list.') VALUES ('.$values_list.')';
$GLOBALS['log']->debug("Relationship Insert String :".$insert_string);
$result=$this->_db->query($insert_string, true);
}
Thank in advance... Cheers.
PD: My sugar version is SugarCRM 1.5.0a


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks