From bffe32efcab82a9488b2ad7279ba1825643e4123 Mon Sep 17 00:00:00 2001 From: Alexander Purr <purr@ub.uni-leipzig.de> Date: Wed, 13 Oct 2021 14:41:56 +0200 Subject: [PATCH] refs #20654 [fid_bbi] forcing input of first- and last name in bbi forms (back to fid standard) * by deleting form-config overwrite ** on requesting registartion mail ** on completing registration ** on updating user profile --- module/fid_bbi/config/module.config.php | 1 - module/fid_bbi/config/user-create-form.php | 20 --------- module/fid_bbi/config/user-init-form.php | 49 ---------------------- module/fid_bbi/config/user-update-form.php | 14 ------- 4 files changed, 84 deletions(-) delete mode 100644 module/fid_bbi/config/user-init-form.php diff --git a/module/fid_bbi/config/module.config.php b/module/fid_bbi/config/module.config.php index 8efaad86dbb..f6bcdcb33a7 100644 --- a/module/fid_bbi/config/module.config.php +++ b/module/fid_bbi/config/module.config.php @@ -32,7 +32,6 @@ use fid\Controller\RecordControllerDelegatorFactory; $config = [ 'forms' => [ - 'user-init-form' => require 'user-init-form.php', 'user-create-form' => require 'user-create-form.php', 'user-update-form' => require 'user-update-form.php', 'fid-acquisition-form' => require 'fid-acquisition-form.php', diff --git a/module/fid_bbi/config/user-create-form.php b/module/fid_bbi/config/user-create-form.php index 0c4d2f4da5a..6e18a2e0496 100644 --- a/module/fid_bbi/config/user-create-form.php +++ b/module/fid_bbi/config/user-create-form.php @@ -25,20 +25,6 @@ use fid_bbi\InputFilter\UserCreateFormInputFilter; return [ 'elements' => [ - 'firstname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], - 'lastname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], 'home_library' => [ 'spec' => [ 'attributes' => [ @@ -60,12 +46,6 @@ return [ ], 'input_filter' => [ 'type' => UserCreateFormInputFilter::class, - 'firstname' => [ - 'required' => false, - ], - 'lastname' => [ - 'required' => false, - ], 'home_library' => [ 'required' => false, ], diff --git a/module/fid_bbi/config/user-init-form.php b/module/fid_bbi/config/user-init-form.php deleted file mode 100644 index c524eec2d07..00000000000 --- a/module/fid_bbi/config/user-init-form.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php -/** - * Copyright (C) 2020 Leipzig University Library - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * - * @author Sebastian Kehr <kehr@ub.uni-leipzig.de> - * @author Gregor Gawol <gawol@ub.uni-leipzig.de> - * @author Alexander Purr <purr@ub.uni-leipzig.de> - * @license http://opensource.org/licenses/gpl-2.0.php GNU GPLv2 - */ - -return [ - 'elements' => [ - 'firstname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], - 'lastname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], - ], - 'input_filter' => [ - 'firstname' => [ - 'required' => false, - ], - 'lastname' => [ - 'required' => false, - ], - ], -]; \ No newline at end of file diff --git a/module/fid_bbi/config/user-update-form.php b/module/fid_bbi/config/user-update-form.php index e5bec01b57c..4a8c5e83662 100644 --- a/module/fid_bbi/config/user-update-form.php +++ b/module/fid_bbi/config/user-update-form.php @@ -22,20 +22,6 @@ return [ 'elements' => [ - 'firstname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], - 'lastname' => [ - 'spec' => [ - 'attributes' => [ - 'required' => false, - ], - ], - ], 'home_library' => [ 'spec' => [ 'attributes' => [ -- GitLab