File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 3232 */
3333
3434include ('../../../inc/includes.php ' );
35- Session::checkRight (" entity " , UPDATE );
35+ Session::checkRight (' entity ' , UPDATE );
3636
3737if (!isset ($ _REQUEST ['plugin_formcreator_questions_id ' ])) {
3838 exit ;
3939}
40- $ questionId = (int ) $ _REQUEST ['plugin_formcreator_questions_id ' ];
41- if ($ questionId == 0 ) {
42- $ formId = (int ) $ _REQUEST ['plugin_formcreator_forms_id ' ];
43- } else {
44- $ form = new PluginFormcreatorForm ();
45- $ form ->getByQuestionId ($ questionId );
46- $ formId = $ form ->getID ();
47- }
4840
4941if (isset ($ _REQUEST ['_empty ' ])) {
5042 // get an empty condition HTML table row
51- $ form = new PluginFormcreatorForm () ;
52- $ form -> getByQuestionId ( $ questionId) ;
43+ $ formId = ( int ) $ _REQUEST [ ' plugin_formcreator_forms_id ' ] ;
44+ $ questionId = ( int ) $ _REQUEST [ ' plugin_formcreator_questions_id ' ] ;
5345 $ questionCondition = new PluginFormcreatorQuestion_Condition ();
5446 echo $ questionCondition ->getConditionHtml ($ formId , $ questionId );
5547}
You can’t perform that action at this time.
0 commit comments