? Pending

User tests: Successful: Unsuccessful:

avatar astridx
astridx
12 Mar 2020

Pull Request for Issue # .

Summary of Changes

Since the if query checks whether response.error exists, it should also be output. I corrected that.

Testing Instructions

Code review

7f30f4c 12 Mar 2020 avatar astridx typo
avatar astridx astridx - open - 12 Mar 2020
avatar astridx astridx - change - 12 Mar 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2020
Category JavaScript Installation
avatar wilsonge
wilsonge - comment - 13 Mar 2020

This isn't right. error is just a boolean. message contains the actual information to be rendered https://github.com/joomla/joomla-cms/blob/4.0-dev/installation/src/Response/JsonResponse.php#L65

avatar astridx
astridx - comment - 13 Mar 2020

OK, thank you. But in this case we should check if message exist, right?

if (response.error && response.message) { in line 33.

avatar wilsonge
wilsonge - comment - 13 Mar 2020

So if the error property exists and is true there should always be a message property (if you look at the code). So there shouldn't be a need to as long as the code remains as it is.

avatar astridx astridx - change - 14 Mar 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-03-14 09:43:51
Closed_By astridx
Labels Added: ?
avatar astridx astridx - close - 14 Mar 2020

Add a Comment

Login with GitHub to post a comment