Skip to content

Commit

Permalink
Merge branch 'release-8.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 8, 2021
2 parents 367db86 + f9a9db1 commit f73fb00
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 56 deletions.
16 changes: 15 additions & 1 deletion actions/TestTaker.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use core_kernel_classes_Property;
use core_kernel_classes_Resource;
use core_kernel_users_Service;
use oat\oatbox\validator\ValidatorInterface;
use oat\generis\Helper\UserHashForEncryption;
use oat\generis\model\GenerisRdf;
use oat\generis\model\OntologyAwareTrait;
Expand All @@ -44,6 +45,7 @@
use tao_helpers_Uri;
use tao_models_classes_UserService;
use tao_helpers_form_FormContainer as FormContainer;
use oat\tao\model\Lists\Business\Validation\DependsOnPropertyValidator;

/**
* Subjects Controller provide actions performed from url resolution
Expand Down Expand Up @@ -147,7 +149,14 @@ public function editSubject()
$clazz,
$subject,
$addMode,
[FormContainer::CSRF_PROTECTION_OPTION => true]
[
FormContainer::CSRF_PROTECTION_OPTION => true,
FormContainer::ATTRIBUTE_VALIDATORS => [
'data-depends-on-property' => [
$this->getDependsOnPropertyValidator(),
],
],
]
);
$myForm = $myFormContainer->getForm();

Expand Down Expand Up @@ -270,4 +279,9 @@ public function moveClass()
{
return parent::moveResource();
}

private function getDependsOnPropertyValidator(): ValidatorInterface
{
return $this->getPsrContainer()->get(DependsOnPropertyValidator::class);
}
}
118 changes: 63 additions & 55 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,64 @@
{
"support" : {
"forum" : "http://forum.taotesting.com",
"issues" : "http://forge.taotesting.com"
},
"homepage" : "http://www.taotesting.com",
"license" : "GPL-2.0-only",
"keywords" : [
"tao",
"oat",
"computer-based-assessment"
],
"name" : "oat-sa/extension-tao-testtaker",
"description" : "extension to manage testtakers ",
"type" : "tao-extension",
"authors" : [{
"name" : "Open Assessment Technologies S.A.",
"homepage" : "http://www.taotesting.com"
}, {
"name" : "Jérôme Bogaerts",
"role" : "Developer"
}, {
"name" : "Joel Bout",
"role" : "Developer"
}, {
"name" : "Bertrand Chevrier",
"role" : "Developer"
}, {
"name" : "Lionel Lecaque",
"role" : "Developer"
}, {
"name" : "Patrick Plichart",
"role" : "Developer"
}, {
"name" : "Dieter Raber",
"role" : "Developer"
}, {
"name" : "Somsack Sipasseuth",
"role" : "Developer"
}
],
"extra" : {
"tao-extension-name" : "taoTestTaker"
},
"autoload" : {
"psr-4" : {
"oat\\taoTestTaker\\" : ""
}
},
"require" : {
"oat-sa/oatbox-extension-installer" : "~1.1||dev-master",
"oat-sa/tao-core" : ">=47.0.0",
"oat-sa/generis" : ">=14.0.0",
"oat-sa/extension-tao-backoffice" : ">=6.0.0"
}
}
"support": {
"forum": "http://forum.taotesting.com",
"issues": "http://forge.taotesting.com"
},
"homepage": "http://www.taotesting.com",
"license": "GPL-2.0-only",
"keywords": [
"tao",
"oat",
"computer-based-assessment"
],
"name": "oat-sa/extension-tao-testtaker",
"description": "extension to manage testtakers ",
"type": "tao-extension",
"authors": [
{
"name": "Open Assessment Technologies S.A.",
"homepage": "http://www.taotesting.com"
},
{
"name": "Jérôme Bogaerts",
"role": "Developer"
},
{
"name": "Joel Bout",
"role": "Developer"
},
{
"name": "Bertrand Chevrier",
"role": "Developer"
},
{
"name": "Lionel Lecaque",
"role": "Developer"
},
{
"name": "Patrick Plichart",
"role": "Developer"
},
{
"name": "Dieter Raber",
"role": "Developer"
},
{
"name": "Somsack Sipasseuth",
"role": "Developer"
}
],
"extra": {
"tao-extension-name": "taoTestTaker"
},
"autoload": {
"psr-4": {
"oat\\taoTestTaker\\": ""
}
},
"require": {
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/tao-core": ">=48.45.0",
"oat-sa/generis": ">=14.0.0",
"oat-sa/extension-tao-backoffice": ">=6.0.0"
}
}

0 comments on commit f73fb00

Please sign in to comment.