Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auswahl einbauen Mehrfachauswahl zulassen oder nicht #31

Open
fietstouring opened this issue Jun 21, 2023 · 1 comment
Open

Auswahl einbauen Mehrfachauswahl zulassen oder nicht #31

fietstouring opened this issue Jun 21, 2023 · 1 comment

Comments

@fietstouring
Copy link

dann statt Radios Checkboxen ausgeben

@fietstouring
Copy link
Author

für checkboxen hab ich das auf die Schnelle so geändert (Formularfeld choice auf Mehrfachauswahl stellen mit 1 statt 0)

<?php

class rex_poll_option extends \rex_yform_manager_dataset
{
    public function getHits()
    {
        $hits = rex_poll_vote::query()
            //->where('option_id', $this->getId())
            ->whereRaw('FIND_IN_SET('. $this->getId(). ', option_id) AND status = 1')
            //->where('status', 1)
            ->find();

        return count($hits);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant