<div dir="ltr">Hi,<div><br></div><div>Yes, On creating module model using getCleanInstance api module Name is getting empty. Because the module model is not initialized. We need to initialize module model name to module Name that is passed.</div>

<div><br></div><div>I have raised a ticket in trac (<a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7963">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7963</a>). Please update if any observation is missed. We will update fix soon.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 26, 2014 at 12:56 PM, Stencel, Maciej <span dir="ltr"><<a href="mailto:m.stencel@opensaas.pl" target="_blank">m.stencel@opensaas.pl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>If You say so it must be truth, but when i insert this code into vtigers main index file (for example purposes only). I get two diffrent default urls, one ok the other one incorrect:</div>


<div><br></div><div><div>$model = Vtiger_Module_Model::getCleanInstance('RecycleBin');</div><div>echo $model->getDefaultUrl().'<br>'; // index.php?<b>module</b>=&view=List&sourceModule=Accounts</div>


<div><br></div><div>$model = Vtiger_Module_Model::getInstance('RecycleBin');</div><div>echo $model->getDefaultUrl().'<br>';  // index.php?<b>module</b>=<i><b>RecycleBin</b></i>&view=List&sourceModule=Accounts</div>


</div><div>exit;</div><div><br></div><div>I have checked it again in the newest vt ver 14032. In attachment is index.php that i used for testing it, just switch them for moment.</div></div><div class="gmail_extra"><div class="">

<br clear="all">
<div><div dir="ltr"><div style="color:rgb(136,136,136)"><b style="color:rgb(34,34,34)">Z poważaniem / <span style="font-size:10pt">Best regards</span></b><br></div><div style="color:rgb(136,136,136)"><b style="color:rgb(34,34,34)"><span style="font-size:10pt"><br>


</span></b></div><div style="color:rgb(136,136,136)"><b>Maciej Stencel</b></div><div style="color:rgb(136,136,136)"><b>Tel: <a value="+48884998123" style="color:rgb(17,85,204)">+48 884-997-123</a></b></div><div style="color:rgb(136,136,136)">


<b><a href="mailto:m.stencel@opensaas.pl" style="color:rgb(17,85,204)" target="_blank">m.stencel@opensaas.pl</a><br><font color="#888888"><span style="color:rgb(127,127,127)"></span></font><font color="#888888"><span style="color:rgb(127,127,127)"><a href="http://www.opensaas.pl/" style="color:rgb(17,85,204)" target="_blank">www.OpenSaaS.pl</a></span></font></b></div>


</div></div>
<br><br></div><div class="gmail_quote">2014-02-25 12:14 GMT+01:00 Uma S <span dir="ltr"><<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div class="h5">
<div dir="ltr">Hi,<div><br></div><div>Name paramater cant be empty, Because getComponentClassName api wich generates module class name, Based on ModuleName passed as default value for module as Vtiger.</div></div><div class="gmail_extra">




<br><br><div class="gmail_quote"><div><div>On Mon, Feb 24, 2014 at 9:36 PM, Stencel, Maciej <span dir="ltr"><<a href="mailto:m.stencel@opensaas.pl" target="_blank">m.stencel@opensaas.pl</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>

<div dir="ltr">Hi VT team!<div><br></div><div>I have a question why when I create Vtiger_Module_Model object using ::getCleanInstance('modulename');</div><div><br></div><div>getDefaultUrl() will return corrupted default url link. Name parameter is always empty and hence module parameter in url is empty too, making the url corrupted.</div>





<div><br></div><div>If I create the object using getInstance('modulename') everything works as should.</div><div><br></div><div>I think there is a bug in earlier function, or is there some kind of wicked philosophy why name parameter there is always empty? ;)</div>





<div><br clear="all"><div><div dir="ltr"><div style="color:rgb(136,136,136)"><b style="color:rgb(34,34,34)">Z poważaniem / <span style="font-size:10pt">Best regards</span></b><span><font color="#888888"><br>

</font></span></div><span><font color="#888888"><div style="color:rgb(136,136,136)">
<b style="color:rgb(34,34,34)"><span style="font-size:10pt"><br></span></b></div><div style="color:rgb(136,136,136)"><b>Maciej Stencel</b></div><div style="color:rgb(136,136,136)"><b>Tel: <a value="+48884998123" style="color:rgb(17,85,204)">+48 884-997-123</a></b></div>





<div style="color:rgb(136,136,136)"><b><a href="mailto:m.stencel@opensaas.pl" style="color:rgb(17,85,204)" target="_blank">m.stencel@opensaas.pl</a><br><font color="#888888"><span style="color:rgb(127,127,127)"></span></font><font color="#888888"><span style="color:rgb(127,127,127)"><a href="http://www.opensaas.pl/" style="color:rgb(17,85,204)" target="_blank">www.OpenSaaS.pl</a></span></font></b></div>





</font></span></div></div>
</div></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div>
<br></div>-- <br><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div>
</div>