diff options
author | Choom | 2022-12-25 02:49:35 -0300 |
---|---|---|
committer | Choom | 2022-12-25 03:28:38 -0300 |
commit | ae512063e7c75658b2ab13e839b80a7b9d3ce95e (patch) | |
tree | 34b9aab0b229d8fe00971b2077c03e67787714a2 | |
parent | b531842c7695c2e7b30ac7993db16263406dfc28 (diff) | |
download | weabot-ae512063e7c75658b2ab13e839b80a7b9d3ce95e.tar.gz weabot-ae512063e7c75658b2ab13e839b80a7b9d3ce95e.tar.xz weabot-ae512063e7c75658b2ab13e839b80a7b9d3ce95e.zip |
Arreglada eliminaciĆ³n de hilos por opciones de board
-rw-r--r-- | cgi/manage.py | 9 |
1 files 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.') + ' <a href="' + \ Settings.CGI_URL+'manage/rebuild/' + \ board['dir']+'">'+_('Rebuild')+'</a>' + template_filename = "message.html" logAction(staff_account['username'], _( 'Updated options for /%s/') % board['dir']) |