Mercurial > hg > fapweb
changeset 395:9f95b27b8e52
Backend fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2013 12:19:43 +0200 |
parents | 560c709ecfad |
children | 2b77599d0324 |
files | admajax.php |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Thu Dec 05 12:04:41 2013 +0200 +++ b/admajax.php Thu Dec 05 12:19:43 2013 +0200 @@ -399,7 +399,15 @@ if (stFetchSQL("SELECT id FROM compos WHERE id=".$compo_id) === false) stError("Invalid compo ID ".$compo_id); else - stSetDisplayVar("compoID", $compo_id); + { + $prev = stGetDisplayVar("compoID"); + if ($prev != $compo_id) + { + stSetDisplayVar("compoCurrEntry", 1); + stSetDisplayVar("compoPrevEntry", 0); + stSetDisplayVar("compoID", $compo_id); + } + } } break;