aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/forms/Part.php
diff options
context:
space:
mode:
authorMichaela Brückner <brueckner@data-quest.de>2024-01-02 08:55:04 +0000
committerMichaela Brückner <brueckner@data-quest.de>2024-01-02 08:55:04 +0000
commit502e6a104f200acc2f8ff81ba09257a6035406e5 (patch)
tree6c10c6662c822475c92814ec32d60951eda9cad8 /lib/classes/forms/Part.php
parentb6bdba58a8e090cb144bae382457c2e439d8a72a (diff)
new registry formular, re #1559
Closes #3533 Merge request studip/studip!1141
Diffstat (limited to 'lib/classes/forms/Part.php')
-rw-r--r--lib/classes/forms/Part.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/classes/forms/Part.php b/lib/classes/forms/Part.php
index 3609eb4..fdca8f5 100644
--- a/lib/classes/forms/Part.php
+++ b/lib/classes/forms/Part.php
@@ -235,6 +235,7 @@ abstract class Part
$attributes['type'],
$attributes['mapper'],
$attributes['store'],
+ $attributes['validate'],
$attributes['if'],
$attributes['permission'],
$attributes['required'],
@@ -257,6 +258,9 @@ abstract class Part
if (isset($data['store']) && is_callable($data['store'])) {
$input->store = $data['store'];
}
+ if (isset($data['validate']) && is_callable($data['validate'])) {
+ $input->validate = $data['validate'];
+ }
if (!empty($data['if'])) {
$input->if = $data['if'];
}