From ae512063e7c75658b2ab13e839b80a7b9d3ce95e Mon Sep 17 00:00:00 2001 From: Choom Date: Sun, 25 Dec 2022 02:49:35 -0300 Subject: Arreglada eliminaciĆ³n de hilos por opciones de board --- cgi/manage.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cgi/manage.py b/cgi/manage.py index 752b097..064b0cf 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -865,8 +865,6 @@ def manage(self, path_split): board['anonymous'] = self.formdata['anonymous'] board['subject'] = self.formdata['subject'] board['message'] = self.formdata['message'] - switchBoard(self.formdata['type']) - board['board_type'] = self.formdata['type'] board['useid'] = self.formdata['useid'] board['slip'] = self.formdata['slip'] board['countrycode'] = self.formdata['countrycode'] @@ -971,10 +969,17 @@ def manage(self, path_split): except: raise UserError(_("Time between replies must be numeric.")) + new_type = int(self.formdata['type']) + if new_type != board['board_type']: + switchBoard(new_type) + board['board_type'] = new_type + updateBoardSettings() + message = _('Board options successfully updated.') + ' '+_('Rebuild')+'' + template_filename = "message.html" logAction(staff_account['username'], _( 'Updated options for /%s/') % board['dir']) -- cgit v1.2.1-18-gbd029