FeedbackForms: improvements and bug fixes (#1585)
- More flexible options-element configuration - Pass submitted form data to getRecipient. This allows one to extend the method and vary the recipient depending on form data. - Refactor the list of form element setting fields to read from configuration to getFormElementSettingFields (again in order to ease extending). - Fix bugs related to translation of submitted checkbox elements.
Showing
- config/vufind/FeedbackForms.yaml 17 additions, 2 deletionsconfig/vufind/FeedbackForms.yaml
- module/VuFind/src/VuFind/Controller/FeedbackController.php 1 addition, 1 deletionmodule/VuFind/src/VuFind/Controller/FeedbackController.php
- module/VuFind/src/VuFind/Form/Form.php 30 additions, 9 deletionsmodule/VuFind/src/VuFind/Form/Form.php
- module/VuFind/tests/fixtures/configs/feedbackforms/test.yaml 70 additions, 0 deletionsmodule/VuFind/tests/fixtures/configs/feedbackforms/test.yaml
- module/VuFind/tests/unit-tests/src/VuFindTest/Form/FormTest.php 97 additions, 0 deletions.../VuFind/tests/unit-tests/src/VuFindTest/Form/FormTest.php
Please register or sign in to comment