[scry] A patch and a question.

eculp at encontacto.net eculp at encontacto.net
Tue May 6 20:31:16 PDT 2003


While enabling polls in blocks on the horde summary page, I clicked on
new poll and got an error that create.php didn't exist.  I substituted
edit.php and it seems to work ok.  I'm attaching a patch, if my assumption
was correct.

The question:  No one is able to vote on the polls that I create.  I can't
find an error anywhere.  I can create the polls with no problem but not vote.
It always says "Voting failed. You have already voted for this poll." but
the poll in question has no votes.  I'm sure that I must be missing something
simple.  I've tried different users both with and without admin privileges.
I have tried all the vote identifiers, too.

Thanks,

ed


-------------------------------------------------



-------------------------------------------------

-------------- next part --------------
Index: summary.php
===================================================================
RCS file: /repository/scry/lib/Block/summary.php,v
retrieving revision 1.3
diff -u -u -r1.3 summary.php
--- summary.php	4 May 2003 22:52:33 -0000	1.3
+++ summary.php	7 May 2003 01:28:56 -0000
@@ -37,7 +37,7 @@
 
         /* Show this link only if user has perms to create a new forum */
         //if ($scry->permissionsFilter(array('admin'), 'admin', _PERMS_EDIT)) {
-            $html .= ' - ' . Horde::link(Horde::applicationUrl('create.php', true), _("New Poll"), 'smallheader') . Horde::img('newforum.gif', _("New Poll"), '', Horde::url($registry->getParam('graphics'), true, -1)) . '</a>';
+            $html .= ' - ' . Horde::link(Horde::applicationUrl('edit.php', true), _("New Poll"), 'smallheader') . Horde::img('newforum.gif', _("New Poll"), '', Horde::url($registry->getParam('graphics'), true, -1)) . '</a>';
         //}
 
         return $html;


More information about the scry mailing list