<div dir="ltr"><div class="gmail_extra">On Tue, Apr 9, 2013 at 4:19 PM, Alan Lord (News) <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"><span style="color:rgb(34,34,34)">But it doesn't seem to have any effect when logged in as admin unfortunately (I set the fields readonly = 1 for *all* profiles.</span><br>
</div>
<br>
Also, of course, it won't persist should the customer add a new profile.<br>
<br></blockquote><div><br></div><div>Grepping the codebase for "insert into vtiger_profile2field", it comes back with few enough hits that I think you could cover all the bases.  I submitted some code [3] towards this end already, but there's still more work to be done.  Basically, I think that we should be doing something more like</div>
<div style><br></div><div style>INSERT INTO vtiger_profile2field</div><div style>SELECT ?, tabid, fieldid, visible, readonly</div><div style>FROM vtiger_def_org_field</div><div style><br></div><div style>and of course wiring all the top level code in modules/Users/SaveProfile.php to use vtlib objects.</div>
<div style><br></div><div>[3] <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7667">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7667</a></div></div></div></div>