<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Why are changes to Teams not taking in Quotes?</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/2244/why-are-changes-to-teams-not-taking-in-quotes</link><description>Hi all, i am using SugarCRM pro 6.5.18 and I have a problem when I try to set Global as team for a quote, when I click &amp;quot;save&amp;quot;, the record is saved but no changes are made to teams. (all other changes are saved) Even if I only add the Global team, if I</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Why are changes to Teams not taking in Quotes?</title><link>https://sugarclub.sugarcrm.com/thread/13266?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 09:53:53 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:578c64eb-79ab-4095-8121-3f79d791ae96</guid><dc:creator>gianluca poli</dc:creator><description>&lt;p&gt;U&amp;#39;re the man!&lt;/p&gt;&lt;p&gt;&lt;span style="color:#555555;"&gt;logic hooks in custom/modules/Quotes/logic_hooks.php were added by an external agency... and was resetting the Team to the private team of the current user... &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#555555;"&gt;Ty again for your time and for pointing me to the right direction!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why are changes to Teams not taking in Quotes?</title><link>https://sugarclub.sugarcrm.com/thread/13265?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 09:34:49 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:f703572b-f217-44b6-8385-731b8d089f29</guid><dc:creator>Roman R.</dc:creator><description>&lt;p&gt;1) Try to Rebuild Relationships&lt;/p&gt;&lt;p&gt;2) See logic hooks in custom/modules/Quotes/logic_hooks.php&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why are changes to Teams not taking in Quotes?</title><link>https://sugarclub.sugarcrm.com/thread/13264?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 09:21:38 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:b157fc1d-8a26-458a-beed-12bf40a05c50</guid><dc:creator>gianluca poli</dc:creator><description>&lt;p&gt;Hi Roman,&lt;/p&gt;&lt;p&gt;ty for your reply&lt;/p&gt;&lt;p&gt;i found this on sugarcrm.log: [FATAL] failed to find link for quotes_teams&lt;/p&gt;&lt;p&gt;tried to rebuild teams but nothing changed....&lt;/p&gt;&lt;p&gt;modified log level to DEBUG and the strange thing i see is that first it makes the correct call:&lt;/p&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Hook called: Quotes::after_retrieve&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] SugarBean[quote].load_relationships, Loading relationship (teams).[/quote]&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, relationship name: quotes_teams&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, Table name:&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, Key name:&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, _bean_table_name: quotes&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, _bean_key_name: team_set_id&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Link Constructor, relationship record found.&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] &lt;span style="color:#e23d39;"&gt;Query:SELECT team_memberships.id FROM team_memberships WHERE user_id=&amp;#39;a87f0bf4-8595-0713-abf3-52d919ec060f&amp;#39; AND team_id IN (&amp;#39;b3167858-341f-e2b0-85fb-52d91923444c&amp;#39;,&amp;#39;9f56649d-b59c-8a82-8fa6-529374e3889a&amp;#39;) AND team_memberships.deleted = 0&lt;/span&gt;&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] Query Execution Time:0.00075197219848633&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] &lt;span style="color:#e23d39;"&gt;Query:UPDATE quotes SET team_set_id = &amp;#39;42755275-0f5c-7aed-3626-565419eb6690&amp;#39; WHERE id = &amp;#39;ee92bed2-f3b9-5233-b08b-563222f342d0&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/h6&gt;&lt;h6 style="text-align:left;"&gt;&lt;span style="color:#303030;font-size:8pt;"&gt;Tue Nov 24 09:34:50 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] Query Execution Time:0.0066819190979004&lt;/span&gt;&lt;/h6&gt;&lt;p&gt;but after that call, another update is executed on same record, deleting the modifications&lt;/p&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Hook called: Users::after_retrieve&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Retrieve Team: SELECT teams.* FROM teams&amp;nbsp; WHERE associated_user_id = &amp;#39;a87f0bf4-8595-0713-abf3-52d919ec060f&amp;#39; AND deleted=0&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] Limit Query:SELECT teams.* FROM teams&amp;nbsp; WHERE associated_user_id = &amp;#39;a87f0bf4-8595-0713-abf3-52d919ec060f&amp;#39; AND deleted=0 Start: 0 count: 1&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] Query:SELECT teams.* FROM teams&amp;nbsp; WHERE associated_user_id = &amp;#39;a87f0bf4-8595-0713-abf3-52d919ec060f&amp;#39; AND deleted=0 LIMIT 0,1&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] Query Execution Time:0.0003969669342041&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][DEBUG] SugarBean[quote].load_relationships, Loading relationship (teams).[/quote]&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] &lt;span style="color:#e23d39;"&gt;Query:SELECT team_memberships.id FROM team_memberships WHERE user_id=&amp;#39;a87f0bf4-8595-0713-abf3-52d919ec060f&amp;#39; AND team_id IN (&amp;#39;b3167858-341f-e2b0-85fb-52d91923444c&amp;#39;) AND team_memberships.deleted = 0&lt;/span&gt;&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] Query Execution Time:0.00044393539428711&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;span style="font-size:8pt;color:#303030;"&gt;Tue Nov 24 09:34:51 2015 [5940][a87f0bf4-8595-0713-abf3-52d919ec060f][INFO] &lt;span style="color:#e23d39;"&gt;Query:UPDATE quotes SET team_set_id = &amp;#39;b3167858-341f-e2b0-85fb-52d91923444c&amp;#39; WHERE id = &amp;#39;ee92bed2-f3b9-5233-b08b-563222f342d0&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/h6&gt;&lt;h6&gt;&lt;/h6&gt;&lt;p&gt;As u can see it is executed one second after the first, on the same instance... and is resetting the previous (correct) update...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Why are changes to Teams not taking in Quotes?</title><link>https://sugarclub.sugarcrm.com/thread/13263?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 09:06:56 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:4ee8953c-b4ad-48f3-af52-75016650534c</guid><dc:creator>Roman R.</dc:creator><description>&lt;p&gt;1) See SugarLog (or php error log)&lt;/p&gt;&lt;p&gt;2) Try to rebuild Teams (Admin-&amp;gt;Repair-&amp;gt;&lt;span style="text-decoration:underline;font-size:13px;color:#000000;font-family:Arial, Verdana, Helvetica, sans-serif;font-style:normal;font-weight:normal;text-align:start;text-indent:0px;"&gt;Repair Teams&lt;/span&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>