changeset 751:025380b800a2

Show the show order generating buttons only for Normal type compos.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 08:01:28 +0200
parents e46f43a8b8dd
children c714140541d5
files admajax.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Thu Nov 20 08:01:04 2014 +0200
+++ b/admajax.php	Thu Nov 20 08:01:28 2014 +0200
@@ -1421,7 +1421,7 @@
           echo
             "<h1>#".$id." - ".chentities($compo["name"])." (".$nentries." entries)</h1>\n";
 
-          if ($nentries > 0)
+          if ($nentries > 0 && $compo["ctype"] == COMPO_NORMAL)
           {
             echo
               stGetFormButtonInput("generate", "", "", " Add missing show positions ", "generateEntryPositions(".$id.", 1)")."\n".