Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notice: Undefined index: #markup in simplesamlphp_auth_form_alter() #35

Open
argiepiano opened this issue May 22, 2023 · 1 comment
Open

Comments

@argiepiano
Copy link

When inserting a Login block anywhere in the layout, this module generates:

Notice: Undefined index: #markup in simplesamlphp_auth_form_alter() (line 556 of /Users/XXX/Sites/localhost/XXX/modules/simplesamlphp_auth/simplesamlphp_auth.module).

There seems to be a difference between this block in D7 and Backdrop. In D7, the block contained links as markup. In Backdrop, there are themed as an item_list, and therefore there is no #markup key, and the str_replace should be applied differently.

@laryn
Copy link
Member

laryn commented Jun 1, 2023

@argiepiano You're right, there was a change in user_login_block between Drupal 7 and Backdrop (Drupal pre-rendered the item_list for some reason). It looks like we may not need str_replace at all, but just to add this new link at the end of the item_list array.

I don't see links at all in user_account_form so I wonder if that whole next section should be chopped out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants