<div dir="ltr"><div>I did, but I know that sharing it will end up with sharing only and nothing else. <br><br><br></div><div>Stacey<br></div><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 3:36 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take a look at the block around 1340 in vtiger-6.3.0/modules/Migration/schema/600_to_610.php...<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
//Query to fetch asterisk extension<br>
$extensionResult = $adb->pquery('SELECT userid, asterisk_extension FROM vtiger_asteriskextensions', array());<br>
for ($i = 0; $i < $adb->num_rows($extensionResult); $i++) {<br>
    $userId = $adb->query_result($extensionResult, 0, 'userid');<br>
    $extensionNumber = $adb->query_result($extensionResult, 0, 'asterisk_extension');<br>
    $adb->pquery('UPDATE vtiger_users SET phone_crm_extension = ? WHERE id = ?', array($extensionNumber, $userId));<br>
}<br>
</blockquote>
<br>
Notice how you have a counter $i for the number of rows found?<br>
<br>
Notice how it *not* used to retrieve the results from each row - hint you set it to 0. So this block of code will update admin's (or the first user in the system by userid) extension number as many times as there are users, but not update any other user in the system.<br>
<br>
The whole PBXManager migration routine is totally broken. I am amazed how nobody else seems to have noticed any of this...<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>