@@ 177-181 (lines=5) @@ | ||
174 | // Open question answered |
|
175 | $openQuestionId = Filter::filterInput(INPUT_POST, 'openQuestionId', FILTER_VALIDATE_INT); |
|
176 | if (0 !== $openQuestionId) { |
|
177 | if ($faqConfig->get('records.enableDeleteQuestion')) { // deletes question |
|
178 | $faq->deleteQuestion($openQuestionId); |
|
179 | } else { // adds this faq record id to the related open question |
|
180 | $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories['rubrik'][0]); |
|
181 | } |
|
182 | ||
183 | $url = sprintf( |
|
184 | '%s?action=faq&cat=%d&id=%d&artlang=%s', |
@@ 390-396 (lines=7) @@ | ||
387 | $faq->addCategoryRelations($categories, $recordId, $newData['lang']); |
|
388 | ||
389 | $openQuestionId = Filter::filterInput(INPUT_POST, 'openQuestionID', FILTER_VALIDATE_INT); |
|
390 | if ($openQuestionId) { |
|
391 | if ($faqConfig->get('records.enableDeleteQuestion')) { |
|
392 | $faq->deleteQuestion($openQuestionId); |
|
393 | } else { // adds this faq record id to the related open question |
|
394 | $faq->updateQuestionAnswer($openQuestionId, $recordId, $categories[0]); |
|
395 | } |
|
396 | } |
|
397 | ||
398 | // Activate visits |
|
399 | $visits = new Visits($faqConfig); |