Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter maximinime

    (@maximinime)

    fixed in lib/CMInvitationCode.php:
    change

    public function getLimit() {
            if ($this->_registrationLimit == self::NO_LIMIT)

    to

    public function getLimit($raw = null) {
            if (!$raw && $this->_registrationLimit == self::NO_LIMIT)

    and change

    'registrationsLimit' => $this->getLimit(),
                'activationNeeded' => $this->isActivationNeeded(),

    to

    'registrationsLimit' => $this->getLimit(true),
                'activationNeeded' => (int) $this->isActivationNeeded(),

    Plugin Author CreativeMindsSolutions

    (@creativemindssolutions)

    We updated the plug to version 2.0 and included setting of registration limit so this should also fix the bug. please report if you still have problems using the plug

    Thread Starter maximinime

    (@maximinime)

    We didn’t end up needing it for our project, so I don’t know. I’m fairly certain this is caused by MySQL 5 not converting the string value to 0. So if you’re testing with 5+, you should be fine.

    One more problem: The plugin cannot be uninstalled. It’s requireing a premium file without first checking if it exists.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot add any invitation codes’ is closed to new replies.