No Code Attached Yet
avatar nbradshaw45
nbradshaw45
3 Feb 2022

Steps to reproduce the issue

Set a User->Field (Phone as an example) to 'Required'="yes", AND 'Editable In'="Site"

Create a user with REST API:
POST: {{base_url}}/{{base_path}}/users

BODY:
{"block":"0","email":"bob.smith@test.com","groups":["2"],"lastResetTime":"","lastvisitDate":"","name":"Bob Smith","params":{"admin_language":"","admin_style":"","editor":"","helpsite":"","language":"","timezone":""},"password":"qwerty1235%%##","password2":"qwerty1235%%##","registerDate":"","requireReset":"0","resetCount":"0","sendEmail":"0","username":"bobsmith"}

Expected result

API should process User Create
Since the Admin can create a user in the Admin interface without being required to enter a value in a required field WHEN 'Editable In'="Site" - I would expect that the Super User can create the user via REST API with the same conditions.

Actual result

Create User via REST API Fails:

JSON Response:
{
"errors": [
{
"title": "Invalid field: phone"
}
]
}

System information (as much as possible)

Joomla 4.0.6

Additional comments

avatar nbradshaw45 nbradshaw45 - open - 3 Feb 2022
avatar nbradshaw45 nbradshaw45 - change - 3 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Feb 2022
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2022
Labels Added: No Code Attached Yet
avatar alikon alikon - change - 14 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-14 08:55:25
Closed_By alikon
avatar alikon alikon - close - 14 Feb 2022
avatar alikon
alikon - comment - 14 Feb 2022

please test #37030

avatar nbradshaw45
nbradshaw45 - comment - 29 Mar 2022

This has tested good.

avatar alikon
alikon - comment - 30 Mar 2022

Could you please mark your test result in the issue tracker by going to this page https://issues.joomla.org/tracker/joomla-cms/37030 , using the blue "Test this" button at the top left corner, selecting the test result ("Tested successfully" in this case) and then submit? Thanks in advance.

p.s
it will need 2 test to be marked RTC (Ready To Commit) and then evaluated for merge from Release Lead

Add a Comment

Login with GitHub to post a comment