add option to hide default options

This commit is contained in:
Lastorder 2024-11-22 10:05:12 +09:00 committed by GitHub
parent 8c2c7178ea
commit f85acb1783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 2 deletions

View file

@ -53,6 +53,7 @@ class PollModel extends Poll
$poll->poll[$val->poll_index_srl]->title = $val->title;
$poll->poll[$val->poll_index_srl]->checkcount = $val->checkcount;
$poll->poll[$val->poll_index_srl]->poll_count = $val->poll_count;
$poll->poll[$val->poll_index_srl]->hide = strpos($val->title, '[HIDE]') !== FALSE;
}
$output = executeQueryArray('poll.getPollItem', $args);