Forum
Unable to restrict access to course based on lesson completion
Hello,
Using TF Learn I would like to restrict access to a lesson to only those who have completed the previous lesson - completion is with score 100 on the test.
Under TF Learn > Lesson > Options tab, I click the green arrow "Restrict Access" then Choose Lesson completion. It asks me for a value. I am working on lesson 2, so naturally I put 1. After clicking save and returning to the options tab, the criteria I selected above disappears.
The expected result would be that the options I selected remain after saving, but they are deleted.
Thanks & looking forward to the bug fix.
Hello,
Unfortunately there is a bug. After updating to TF Learn 2.4.6 and TF Library 3.5.1 and going to TF Learn > Lessons
I now get:
Class "Joomla\CMS\Form\Field\ModalSelectField" not found
And here is the debug:
# Function Location1 () JROOT/libraries/techfry/src/Field/RecordselectField.php:332 include() JROOT/libraries/vendor/composer/ClassLoader.php:5713 Composer\Autoload\includeFile() JROOT/libraries/vendor/composer/ClassLoader.php:4284 Composer\Autoload\ClassLoader->loadClass() JROOT/libraries/src/Autoload/ClassLoader.php:595 Joomla\CMS\Autoload\ClassLoader->loadClass() 6 class_exists() JROOT/libraries/src/Form/FormHelper.php:2247 Joomla\CMS\Form\FormHelper::loadClass() JROOT/libraries/src/Form/FormHelper.php:1368 Joomla\CMS\Form\FormHelper::loadType() JROOT/libraries/src/Form/FormHelper.php:789 Joomla\CMS\Form\FormHelper::loadFieldType() JROOT/libraries/src/Form/Form.php:145210 Joomla\CMS\Form\Form->loadField() JROOT/libraries/src/Form/Form.php:43511 Joomla\CMS\Form\Form->getGroup() JROOT/layouts/joomla/form/field/subform/repeatable-table.php:6312 include() JROOT/libraries/src/Layout/FileLayout.php:12813 Joomla\CMS\Layout\FileLayout->render() JROOT/libraries/src/Form/Field/SubformField.php:27414 Joomla\CMS\Form\Field\SubformField->getInput() JROOT/libraries/src/Form/FormField.php:104215 Joomla\CMS\Form\FormField->renderField() JROOT/libraries/src/Form/Form.php:55816 Joomla\CMS\Form\Form->renderFieldset() JROOT/libraries/techfry/src/View/Back/TfViewForm.php:23717 TechFry\Library\View\Back\TfViewForm->render_fieldset() JROOT/libraries/techfry/src/View/Back/TfViewForm.php:17118 TechFry\Library\View\Back\TfViewForm->add_tab_form() JROOT/administrator/components/com_tflearn/tmpl/lesson/edit.php:3019 include() JROOT/libraries/src/MVC/View/HtmlView.php:41520 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:20321 Joomla\CMS\MVC\View\HtmlView->display() JROOT/libraries/techfry/src/View/Back/TfView.php:11622 TechFry\Library\View\Back\TfView->display() JROOT/libraries/techfry/src/View/Back/TfViewForm.php:5723 TechFry\Library\View\Back\TfViewForm->display() JROOT/libraries/src/MVC/Controller/BaseController.php:66024 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_tflearn/src/Controller/DisplayController.php:1925 TechFry\Component\TfLearn\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:69326 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:14327 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:36128 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:14329 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:18630 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:29331 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:6132 require_once() JROOT/administrator/index.php:32
Looking forward to the bug fix. Thank you.