Fix in generate admin
This commit is contained in:
parent
39192577c8
commit
5a427b1c15
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,8 @@ class GenerateAdminClass:
|
||||||
set_flash_message(I18n.lang('common', 'task_successful', 'Task successful'))
|
set_flash_message(I18n.lang('common', 'task_successful', 'Task successful'))
|
||||||
|
|
||||||
if self.post_update:
|
if self.post_update:
|
||||||
|
if getpostfiles.get['id']=='0':
|
||||||
|
getpostfiles.get['id']=self.model.insert_id()
|
||||||
self.post_update(self, getpostfiles.get['id'])
|
self.post_update(self, getpostfiles.get['id'])
|
||||||
|
|
||||||
redirect(self.url)
|
redirect(self.url)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue