Skip to content
Commits on Feb 7, 2014
  1. Fix tests, add travis support.

    committed Feb 7, 2014
Commits on Jan 27, 2014
  1. @tomspeak

    BUGFIX: Incorrect logic for showing results

    tomspeak committed Jan 27, 2014
    The logic used was not correct for what we were trying to achieve when checking whether or not to show the results.
  2. @tomspeak

    BUGFIX: incorrect `hasVoted()`call now `canVote()`

    tomspeak committed Jan 27, 2014
    With the new logic implemented, calling hasVoted() here no longer makes sense. Changed to canVote() which gives the user a lot more flexibility.
  3. @tomspeak

    BUGFIX: Incorrect function call for markAsVoted

    tomspeak committed Jan 27, 2014
    Some left over legacy code slipped through when merging. `Poll::markasVoted()` should be called through the `voteHandler` instead of relying on hard coded cookie storing functionality.
  4. @tomspeak

    Merge branch 'vote-abstraction' of https://github.com/TomSpeak/silver…

    tomspeak committed Jan 27, 2014
    …stripe-polls into TomSpeak-vote-abstraction
    
    fixes #20
    
    Conflicts:
    	Readme.md
    	code/Poll.php
Commits on Jan 26, 2014
  1. Merge pull request #19 from TomSpeak/3.x-fixes

    committed Jan 26, 2014
    Updated for 3.x standards
  2. Merge pull request #18 from TomSpeak/patch-2

    committed Jan 26, 2014
    Removing reference to missing JS file
  3. Merge pull request #17 from TomSpeak/multi-choice-fix

    committed Jan 26, 2014
    FIX Allowing multiple choice votes
  4. Merge pull request #16 from TomSpeak/patch-1

    committed Jan 26, 2014
    Fixing crash from example code in Readme
  5. @Leapfrognz

    Add composer file.

    Leapfrognz committed with Jan 10, 2014
Commits on Jan 23, 2014
  1. @tomspeak

    Docs update

    tomspeak committed Jan 23, 2014
    Adding info about the vote handler in docs
  2. @tomspeak

    NEW Abstracting the vote storage layer

    tomspeak committed Jan 23, 2014
    Added an abstraction layer to the voting mechanism so that people can
    extend the module to use their own logic and storage engine for voters.
    
    Now it is possible to add a vote handler that will only allow Members to
    vote (and only vote once) rather than relying on cookies.
    
    Simply change the `Poll.vote_handler_class` config setting to a class
    that extends Vote_Backend and you can define any logic to store and
    validate votes
  3. @tomspeak

    Updated for 3.x standards

    tomspeak committed Jan 23, 2014
    Updated the README and templates to use `$`s before variables
    Updated the Poll to caluclate max and sum from SS_List functions rather
    than raw SQL queries
  4. @tomspeak

    API Deprecating Poll::isVoted

    tomspeak committed Jan 23, 2014
    `Poll::isVoted()` is an unclear function name. We've renamed it to
    `hasVoted`
  5. @tomspeak

    Removing reference to missing JS file

    tomspeak committed Jan 23, 2014
    polls/javascript/polls.js doesn't exist. Removing reference to it
  6. FIX Allowing multiple choice votes

    Tom Speak committed Jan 23, 2014
    Currently, if a user selects more than one choice for a multiple choice
    poll only the first choice is recorded.
    
    This is because `PollChoice::addVote()` checks if the user has voted or
    not and only records the vote if they haven't but then it marks them as
    having voted and all subsequent choices will be ignored.
    
    Now we only execute `Poll::markAsVoted()` after all choices are recorded
Commits on Jan 20, 2014
  1. @tomspeak

    Fixing crash from example code in Readme

    tomspeak committed Jan 20, 2014
    The example code in the read me would cause a deprecated error when trying to load a page.
Commits on Dec 4, 2012
  1. Update docs.

    committed Dec 5, 2012
  2. More cleanup for SS3.0.

    committed Dec 5, 2012
  3. Merge pull request #12 from anselmdk/ss3

    committed Dec 4, 2012
    updated to work w. ss3
  4. Merge pull request #13 from silverstripe-droptables/merge

    committed Dec 4, 2012
    Merge from internal project
Commits on Oct 8, 2012
  1. @halkyon
  2. @halkyon
  3. @halkyon

    BUGFIX: fix test

    committed with halkyon Aug 10, 2011
  4. @anselmdk

    updated to work w. ss3

    anselmdk committed Oct 8, 2012
Commits on Sep 7, 2011
  1. BUGFIX: add more documentation - how to pass a Poll to PollForm (than…

    committed Sep 7, 2011
    …ks Jason G. for pointing this out)
Commits on Aug 4, 2011
  1. MINOR: update readme

    committed Aug 5, 2011
  2. FEATURE: allow redirecting back to anchor, so the page skips to the p…

    committed Jul 25, 2011
    …oll. FEATURE: allow editing the total vote number BUGFIX: fix a minor bug with function name
  3. ENHANCEMENT: update readme

    committed Jul 22, 2011
Something went wrong with that request. Please try again.