I set up and deployed a simple Product module, with the intent of setting up order management. Then I created a Payments module and linked it to Accounts.
Left to go put kiddos in bed and returned to this (Sugar 5.5):
Fatal error: Call to a member function getQuery() on a non-object in .../modules/Contacts/Contact.php on line 500
I looked up line 500 and found this:
function load_contacts_users_relationship(){
global $current_user;
$this->load_relationship("user_sync");
$query_array=$this->user_sync->getQuery(true);
$query_array['where'] .= " AND users.id = '$current_user->id'";
$query='';
foreach ($query_array as $qstring) {
$query.=' '.$qstring;
}
$list = $this->build_related_list($query, new User());
if(!empty($list)){
//this should only return one possible value so set it
$this->contacts_users_id = $list[0]->id;
}
I don't even have a clue what questions to ask to help resolve this.
Anyone? Thank you!


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks