stable

Clone or download

Read-only

Display and use default license

ATM you need to forge the value directly into the database like REPLACE into frs_download_agreement_default(project_id, agreement_id) VALUES (101, 2); Then, the default license agreement should be displayed in the frs admin interface as well as at package creation. Part of story #14008 customize FRS Download Agreement in my project Change-Id: I7dd7f996595e1c8308314d993dad2dd0e197c820

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +6 −0 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/EditLicenseAgreementController.php +5 −4 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/LicenseAgreementPresenter.php +22 −5 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/ListLicenseAgreementsController.php +6 −2 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/ListLicenseAgreementsPresenter.php +5 −3 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/SaveLicenseAgreementController.php +1 −1 Go to diff View file
M src/common/FRS/LicenseAgreement/Admin/templates/license-agreements-list.mustache +7 −2 Go to diff View file
M src/common/FRS/LicenseAgreement/DefaultLicenseAgreement.php +5 −0 Go to diff View file
M src/common/FRS/LicenseAgreement/LicenseAgreement.php +5 −0 Go to diff View file
M src/common/FRS/LicenseAgreement/LicenseAgreementDao.php +13 −4 Go to diff View file
M src/common/FRS/LicenseAgreement/LicenseAgreementDisplay.php +5 −1 Go to diff View file
M src/common/FRS/LicenseAgreement/LicenseAgreementFactory.php +25 −6 Go to diff View file
M src/common/FRS/LicenseAgreement/LicenseAgreementInterface.php +2 −0 Go to diff View file
M src/common/FRS/LicenseAgreement/NewLicenseAgreement.php +5 −0 Go to diff View file
M src/common/FRS/LicenseAgreement/NoLicenseToApprove.php +6 −1 Go to diff View file
M src/db/mysql/database_structure.sql +6 −0 Go to diff View file
A src/db/mysql/updates/2019/201911071703_add_default_frs_agreement_table.php +45 −0 Go to diff View file
M tests/phpunit/common/FRS/LicenseAgreement/Admin/ListLicenseAgreementsControllerTest.php +2 −0 Go to diff View file
M tests/phpunit/common/FRS/LicenseAgreement/LicenseAgreementDisplayTest.php +26 −6 Go to diff View file
M tests/phpunit/common/FRS/LicenseAgreement/LicenseAgreementFactoryTest.php +68 −11 Go to diff View file