Error

Call to undefined function fixMovedQuestionConditions()

/mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/surveyadmin.php(1338)

1326             } elseif ($ID[0] == 'q') {
1327                 $qid = (int) substr($ID, 1);
1328                 $gid = (int) substr($parent, 1);
1329                 if (!isset($aQuestionOrder[$gid])) {
1330                     $aQuestionOrder[$gid] = 0;
1331                 }
1332 
1333                 $sBaseLanguage = Survey::model()->findByPk($iSurveyID)->language;
1334                 $oQuestion = Question::model()->findByPk(array("qid"=>$qid, 'language'=>$sBaseLanguage));
1335                 $oldGid = $oQuestion['gid'];
1336 
1337                 if ($oldGid != $gid) {
1338                     fixMovedQuestionConditions($qid, $oldGid, $gid, $iSurveyID);
1339                 }
1340                 Question::model()->updateAll(array('question_order' => $aQuestionOrder[$gid], 'gid' => $gid), 'qid=:qid', array(':qid' => $qid));
1341                 Question::model()->updateAll(array('gid' => $gid), 'parent_qid=:parent_qid', array(':parent_qid' => $qid));
1342                 $aQuestionOrder[$gid]++;
1343             }
1344         }
1345         LimeExpressionManager::SetDirtyFlag(); // so refreshes syntax highlighting
1346         Yii::app()->session['flashmessage'] = gT("The new question group/question order was successfully saved.");
1347     }
1348 
1349     /**
1350      * Get the new question organization from the post data.

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/surveyadmin.php(1229): SurveyAdmin->_reorderGroup(186748)
1224             $this->getController()->redirect(Yii::app()->request->urlReferrer);
1225         }
1226 
1227         if ($thereIsPostData) {
1228             // Save the new ordering
1229             $this->_reorderGroup($iSurveyID);
1230 
1231             $closeAfterSave = $request->getPost('close-after-save') === 'true';
1232             if ($closeAfterSave) {
1233                 $this->getController()->redirect(array('admin/survey/sa/view/surveyid/'.$iSurveyID));
1234             } else {
#3
+
 /mnt/data/shnoulle/nginx/www/develop/application/core/Survey_Common_Action.php(83): CAction->runWithParamsInternal(SurveyAdmin, ReflectionMethod, array("r" => "admin/survey/sa/organize/surveyid/186748", "sa" => "organize", "surveyid" => "186748", "iSurveyId" => "186748", ...))
78             $oMethod = new ReflectionMethod($this, $sDefault);
79         }
80 
81         // We're all good to go, let's execute it
82         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
83         return parent::runWithParamsInternal($this, $oMethod, $params);
84     }
85 
86     /**
87      * Some functions have different parameters, which are just an alias of the
88      * usual parameters we're getting in the url. This function just populates
#7
+
 /mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(158): CController->run("survey")
153                     $this->redirect(array('/admin/authentication/sa/login'));
154                 }
155             }
156         }
157 
158         return parent::run($action);
159     }
160 
161     /**
162      * Routes all the actions to their respective places
163      *
2019-04-06 12:56:00 nginx/1.14.2 Yii Framework/1.1.21