mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-24 02:17:05 +00:00
Hidden results work from wizard creation
This commit is contained in:
parent
8f2c9f07d4
commit
cd130e6443
1 changed files with 3 additions and 3 deletions
|
|
@ -13,10 +13,10 @@ class PollRepository extends AbstractRepository {
|
|||
|
||||
public function insertPoll($poll_id, $admin_poll_id, $form) {
|
||||
$sql = 'INSERT INTO `' . Utils::table('poll') . '`
|
||||
(id, admin_id, title, description, admin_name, admin_mail, end_date, format, editable, receiveNewVotes, receiveNewComments)
|
||||
VALUES (?,?,?,?,?,?,FROM_UNIXTIME(?),?,?,?,?)';
|
||||
(id, admin_id, title, description, admin_name, admin_mail, end_date, format, editable, receiveNewVotes, receiveNewComments, hidden)
|
||||
VALUES (?,?,?,?,?,?,FROM_UNIXTIME(?),?,?,?,?,?)';
|
||||
$prepared = $this->prepare($sql);
|
||||
$prepared->execute(array($poll_id, $admin_poll_id, $form->title, $form->description, $form->admin_name, $form->admin_mail, $form->end_date, $form->format, $form->editable, $form->receiveNewVotes, $form->receiveNewComments));
|
||||
$prepared->execute(array($poll_id, $admin_poll_id, $form->title, $form->description, $form->admin_name, $form->admin_mail, $form->end_date, $form->format, $form->editable, $form->receiveNewVotes, $form->receiveNewComments, $form->hidden));
|
||||
}
|
||||
|
||||
function findById($poll_id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue