Skip to content

Admin page for Groups throws error#1651

Merged
nkissebe merged 2 commits intohubzero:devfrom
jsperhac:jsperhac-groups-admin
Oct 5, 2023
Merged

Admin page for Groups throws error#1651
nkissebe merged 2 commits intohubzero:devfrom
jsperhac:jsperhac-groups-admin

Conversation

@jsperhac
Copy link
Contributor

@jsperhac jsperhac commented Aug 3, 2023

Summary

Error was encountered while generating test data. There is no ticket or Jira card.

A clear misspelling of a variable name ($customFieldForms instead of $customFieldForm) was resulting in an error being thrown, "Undefined variable: customFieldForms". This error occurred on creating a group on the admin interface, in the specific case when the Group's Alias was left blank.

After the variable name was corrected, it became clear that the UI's error message about the missing Alias could be improved. The message originally referred to a missing "Group ID". The message has been amended to refer to the Alias.

Testing

Testing this small change was performed on a VirtualBox VM on the developer's workstation. Specificially, the admin page for creating groups was loaded and a new Group created with the Alias left blank. With the fix in place, the appropriate error message was seen, prompting the user for an Alias; before the fix, the page threw an unrecoverable error.

Variable $customFieldForm was misspelled as $customFieldForms and throwing error in specific case when a group CN error was encountered.
@jsperhac jsperhac changed the title Jsperhac groups admin Admin page for Groups throws error Aug 3, 2023
@nkissebe nkissebe merged commit 0c553cb into hubzero:dev Oct 5, 2023
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

Successfully merging this pull request may close these issues.

2 participants

Comments