support internal relations also on unique keys, not only on primary keys

This commit is contained in:
Marc Delisle
2006-11-19 12:59:09 +00:00
parent 2bfdc5514a
commit 3affb2d94b
122 changed files with 150 additions and 147 deletions

View File

@@ -340,7 +340,7 @@ function Click_field(T,f,PK) // table field
{
if(!click_field)
{//.style.display=='none' .style.visibility = "hidden"
if(!PK) { alert(LangNotThePrimaryKey); return 0; }//PK
if(!PK) { alert(LangPleaseSelectPrimaryOrUniqueKey); return 0; }//PK
if(j_tabs[db+'.'+T]!='INNODB') document.getElementById('InnoDB_relation').style.display='none';
click_field = 1;
link_relation = "T1=" + T + "&F1=" + f;