Skip to content

Commit

Permalink
Fix: private status is lost if change country
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jan 18, 2011
1 parent 7d1cfe3 commit 0831bbd
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions htdocs/societe/soc.php
Expand Up @@ -610,9 +610,14 @@
{
print "\n".'<script type="text/javascript" language="javascript">';
print 'jQuery(document).ready(function () {
id_te_private=8;
id_ef15=1;
jQuery(".individualline").hide();
id_te_private=8;
id_ef15=1;
is_private='.(GETPOST("private")?GETPOST("private"):0).';
if (is_private) {
jQuery(".individualline").show();
} else {
jQuery(".individualline").hide();
}
jQuery("#radiocompany").click(function() {
jQuery(".individualline").hide();
jQuery("#typent_id").val(0);
Expand All @@ -634,10 +639,10 @@

print "<br>\n";
print $langs->trans("ThirdPartyType").': &nbsp; ';
print '<input type="radio" id="radiocompany" class="flat" name="private" value="0"'.(! $_REQUEST["private"]?' checked="true"':'');
print '<input type="radio" id="radiocompany" class="flat" name="private" value="0"'.(! GETPOST("private")?' checked="true"':'');
print '> '.$langs->trans("Company/Fundation");
print ' &nbsp; &nbsp; ';
print '<input type="radio" id="radioprivate" class="flat" name="private" value="1"'.(! $_REQUEST["private"]?'':' checked="true"');
print '<input type="radio" id="radioprivate" class="flat" name="private" value="1"'.(! GETPOST("private")?'':' checked="true"');
print '> '.$langs->trans("Individual");
print ' ('.$langs->trans("ToCreateContactWithSameName").')';
print "<br>\n";
Expand Down

0 comments on commit 0831bbd

Please sign in to comment.