We are experiencing an error when creating a link between an opportunity (we've renamed them enquiries) and a document.
The relationship was created using the studio (one enquiry to many documents).
Now if we try to create a new document from within the opportunities screen we get the following error:
Catchable fatal error: Object of class Link could not be converted to string in .../data/SugarBean.php on line 1784
This line is:
The odd thing is we can create a document in the Create Document Screen with a link to the opportunity with no problems - it's just when we are going through the create button on the Opportunity Subpanel.PHP Code:function save_relationship_changes($is_update, $exclude=array())
...
$GLOBALS['log']->debug("save_relationship_changes(): From field_defs - attempting to add a relationship record - {$def [ 'link' ]} = {$this->$def [ 'id_name' ]} " );
Any help would be greatly appreciated.
Although we get this error the document does still appear, but if we try and view the document we get the error:
Invalid File Reference
We are running sugarCRM Version 5.1.0 (Build 4732) on Apache 2.2.8, PHP 5.2.4 on ubuntu with MySQL 5.


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks