We have a custom relationship in the Opportunities module that will display the line items from a quote onto the Opportunity. This code worked in 4.5.1 and in 5.0.0i. We're testing 5.2.0a and this is a major but that is preventing us from going live with it.
In Sugar, the error displayed on the screen is:
I do not believe that the problem is not in SugarBean, but simply the data being passed through SugarBean that's causing the error.Code:Fatal error: Call to a member function getBeans() on a non-object in /var/www/html/sugarupgrade/data/SugarBean.php on line 936
In the logs, we get this:
This is line 936 in SugarBean.php:Code:[FATAL] Error fetching relationship from cache product_bundle_opportunity
If I comment out this line of code in view.detail.php, the Detail View works, without displaying the line items:Code:return $this->$field_name->getBeans(new $bean_name(), $sort_array, $begin_index, $end_index, $deleted, $optional_where);
Because it references the product_bundle_opportunity in the log, I know it is the customization to display these line items. I've checked the code in Quotes (where the line item information does not break) and with the obvious exceptions, the code is identical to the view.detail.php in Opportunities. I've also checked in vardefs and made sure that the appropriate fields were defined there. I'm running out of places to look and I hope someone else can assist.Code:$product_bundle_list = $this->bean->get_linked_beans('product_bundles','ProductBundle');
Sugar 5.2.0a
Apache 2.2.3
MySQL 5.0.58
PHP 5.2.6


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks