* Fix save story common bug.

This commit is contained in:
guanxiying
2019-11-26 15:40:49 +08:00
parent f2ed384e7a
commit 7460f2f8fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
$(document).ready(function()
{
$('#mainMenu #conceptTab').addClass('btn-active-text');
$('#mainMenu #flowTab').addClass('btn-active-text');
$('#ajaxForm').ajaxForm(
{
finish:function(response)
+1 -1
View File
@@ -538,7 +538,7 @@ class customModel extends model
*/
public function setStoryRequirement()
{
if(!$this->post->storyRequirement) return true;
if(!isset($_POST['storyRequirement'])) return true;
$this->loadModel('setting')->setItem('system.custom.storyRequirement', $this->post->storyRequirement);
$oldIndex = isset($this->config->custom->storyRequirement) ? $this->config->custom->storyRequirement : '0';