Bug: Clients created without contacts unable to be edited or fixed

Version: v5.3.71-W78
Clients that were created on earlier versions but for which no contacts were added can no longer be edited to change any existing data, as it returns the error “Please enter a client or contact name”.
Also, there are no fields to enter the contact name, so there is no way to fix this as of now, apart from possibly tinkering with the database itself, which isnt the best way to go about it (and could possibly cause data corruption)
Screenshot:

Hi,

Thanks for reporting this!

@david any thoughts?

@sebinmichael

If you have cli access please run

php artisan ninja:check-data --fix=true

This will create a blank contact if it is missing from the client.

Hi david,
Thanks for your quick response.
I did have cli access and managed to run the command and it does seem to fix it.
However, it does return a “Done: FAILURE” towards the end.
I am not sure if I should be concerned about it.
Any guidance will be appreciated.

@sebinmichael

There would be more information as to what - if any - issues are present.

The check data script also checks client balances / paid to dates and is able to correct any data that is incorrect.

In my case it does mention that some paid-to-date information is not correct, but does not seem to be correcting it. I checked the actual numbers on the front-end and they looked just fine to me

@sebinmichael

Unsure without looking at the dataset. We’ve made some changes to the check data script, so it is possible it may be an incorrect calculation at some point.