diff --git a/common.inc.php b/common.inc.php
index c1435cc..171e197 100644
--- a/common.inc.php
+++ b/common.inc.php
@@ -250,7 +250,7 @@ if(is_array($nav)) {
if(is_array($_SESSION['roles'])) {
foreach($_SESSION['roles'] AS $roletype) {
$roleid=$roles[$roletype]['id'];
- $q=mysql_query("SELECT * FROM rolestasks WHERE roles_id='$roleid' AND pid=0 AND conferencetype='{$conference['type']}' ORDER BY task");
+ $q=mysql_query("SELECT * FROM rolestasks WHERE roles_id='$roleid' AND pid=0 AND conferencetype='{$conference['type']}' ORDER BY ord,task");
if(mysql_num_rows($q)==1) {
$setPrimaryNav=true;
}
diff --git a/nav.php b/nav.php
index d996e92..07ffe78 100644
--- a/nav.php
+++ b/nav.php
@@ -34,7 +34,8 @@
unset($_SESSION['nav']['secondary']);
unset($_SESSION['nav']['tertiary']);
unset($_SESSION['nav']['tertiarylink']);
- $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=1 ORDER By ord,task");
+ $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=1 AND conferencetype='{$conference['type']}' ORDER By ord,task");
+ echo mysql_error();
echo "
";
$cl="";
while($r=mysql_fetch_object($q)) {
@@ -54,19 +55,25 @@
$_SESSION['nav']['secondary']=$id;
unset($_SESSION['nav']['tertiary']);
unset($_SESSION['nav']['tertiarylink']);
- $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=2 ORDER By ord,task");
+ $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=2 AND conferencetype='{$conference['type']}' ORDER By ord,task");
+ echo "";
while($r=mysql_fetch_object($q)) {
+ echo "- id}\">link\">".i18n($r->task)."
\n";
+ /*
if($r->link) {
echo "\n";
} else {
echo "id}\">".i18n("$r->task")."
\n";
}
+ */
+ /*
echo "";
- $q2=mysql_query("SELECT * FROM rolestasks WHERE pid='$r->id' AND level=3 ORDER BY ord,task");
+ $q2=mysql_query("SELECT * FROM rolestasks WHERE pid='$r->id' AND level=3 AND conferencetype='{$conference['type']}' ORDER BY ord,task");
while($r2=mysql_fetch_object($q2)) {
echo "- id}\">link\">".i18n($r2->task)."
\n";
}
echo "
";
+ */
}
echo "
\n";
break;
diff --git a/super/roletasks.php b/super/roletasks.php
index 038acf0..1449ab0 100644
--- a/super/roletasks.php
+++ b/super/roletasks.php
@@ -60,7 +60,7 @@ function doTree($id,$roleid,$ctype) {
doTree($r->id,$roleid,$ctype);
}
$level--;
- if($level<4) {
+ if($level<3) {
echo "