Remove email and comment from enty table they will go to costum values

This commit is contained in:
2026-05-09 00:54:23 +02:00
parent 8b54aff9ac
commit bd7b9e1731
5 changed files with 1 additions and 20 deletions

View File

@@ -28,9 +28,7 @@ function go_form_activate()
club varchar(100) DEFAULT NULL,
rank tinyint(2) DEFAULT 0,
rating smallint(5) DEFAULT 0,
email varchar(255) DEFAULT NULL,
egd_number varchar(20) DEFAULT NULL,
comment text DEFAULT NULL,
created_at date DEFAULT CURRENT_TIMESTAMP NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (form_id) REFERENCES $forms(id) ON DELETE CASCADE
@@ -113,9 +111,7 @@ function go_form_handle_submission()
'club' => sanitize_text_field($_POST['club'] ?? ''),
'rank' => $rank,
'rating' => $rating,
'email' => sanitize_email($_POST['email'] ?? ''),
'egd_number' => sanitize_text_field($_POST['egd_number'] ?? ''),
'comment' => sanitize_textarea_field($_POST['comment'] ?? '')
];
if (empty($data['first_name']) || empty($data['last_name'])) {