Cannot set unique registration path

Created on 28 July 2021, over 3 years ago
Updated 5 October 2024, about 1 month ago

Problem/Motivation

With Drupal 9.2.2, when I go to add a unique profile path, I check the box, replace the 0 that is in the url path box and hit submit, however nothing is saved when I go back into it. Playing around in the code it looks like it is falling apart in the function profile_reg_path_path_builder and $form_state->getValue('path') is coming back as null. If I echo back the $form_state->getValues(); I get the following:

array:11 [▼
"label" => "Educator Information"
"id" => "educator"
"display_label" => "Educator"
"multiple" => 0
"registration" => 0
"roles" => array:1 [▶]
"allow_revisions" => 0
"new_revision" => 0
"actions" => []
"commerce_order" => array:1 [▶]
"regpath" => array:2 [▼
"status" => 1
"settings" => array:2 [▼
"tab_text" => "Register as Educator Information"
"path" => "thisistheurl"
]
]
]

So the code that is in that function does nothing to store things, since its actually in the regpath array.

Suggestions?

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States Christopher Riley

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024