Fix bad unique constraints in Mysql table user_has_notifications

This commit is contained in:
Frederic Guillot
2016-03-27 15:32:29 -04:00
parent 9ba44a01db
commit f11fccd0d7
6 changed files with 30 additions and 19 deletions

View File

@@ -3,11 +3,8 @@
</div>
<form method="post" action="<?= $this->url->href('user', 'notifications', array('user_id' => $user['id'])) ?>" autocomplete="off">
<?= $this->form->csrf() ?>
<?= $this->form->checkbox('notifications_enabled', t('Enable notifications'), '1', $notifications['notifications_enabled'] == 1) ?><br>
<hr>
<h4><?= t('Notification methods:') ?></h4>
<?= $this->form->checkboxes('notification_types', $types, $notifications) ?>