* Fix save story common bug.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#mainMenu #conceptTab').addClass('btn-active-text');
|
||||
$('#mainMenu #flowTab').addClass('btn-active-text');
|
||||
$('#ajaxForm').ajaxForm(
|
||||
{
|
||||
finish:function(response)
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user