From 279e7f682d734915e4491b7532ae2d6bb36f1cd4 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Sun, 7 Apr 2024 19:37:41 +0100 Subject: [PATCH] underlying db field is set to an int (for mysql and pgsql), pgsql does not cope with t/f being set for an inty field, so change the model definition .... - see #814 --- model/MailboxHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/MailboxHandler.php b/model/MailboxHandler.php index a0d361da..38d1c594 100644 --- a/model/MailboxHandler.php +++ b/model/MailboxHandler.php @@ -51,7 +51,7 @@ protected function initStruct() # read_from_db_postprocess() also sets 'quotabytes' for use in init() # TODO: read used quota from quota/quota2 table 'active' => pacol(1, 1, 1, 'bool', 'active' , '' , 1 ), - 'smtp_active' => pacol($smtpActiveFlag, $smtpActiveFlag,0, 'bool', 'smtp_active' , '' , 1 ), + 'smtp_active' => pacol($smtpActiveFlag, $smtpActiveFlag,0, 'int', 'smtp_active' , '' , 1 ), 'welcome_mail' => pacol($this->new, $this->new, 0, 'bool', 'pCreate_mailbox_mail' , '' , 1, /*options*/ array(), /*not_in_db*/ 1 ),