if (isset($check_updates_result['has_updates'])) {has no effect as the json returned hasn't the key 'has_updates'. Instead I I used the following line:
if (isset($check_updates_result['updates']) && count($check_updates_result['updates']) > 0 ) {
Hello,
2.0.5 is the latest version we have and once we have new updates you will receive them
I know it’s the latest version – but there is a bug in it. Please read my post above. I just want to help to fix it.
ah Ok, sure will add this to the next release, thanks for pointing that 🙂
but its has_updates not updates
if ($check_updates_result['status'] != "error") {
if (isset($check_updates_result['updates']) && count($check_updates_result['updates']) > 0) {
$remote_updates = $check_updates_result['updates'];
}
if (!$check_updates_result['has_updates']) {
flash(trans('Settings::labels.module.up_to_date'))->success();
}
}
there was no json key ‘has_updates’ but there were updates in json key ‘updates’
There is both
I looked at the line at /Corals/core/Settings/Classes/Modules.php@checkForUpdates() :
$check_updates_result = json_decode($res->getBody(), 1);
and then I did a:
dd($check_updates_result);
and there where ‘updates’ but no ‘has_updates’ – that’s the point.
Please login or Register to submit your answer
I guess this issue has the same bug:
https://www.laraship.com/question/update-status-available-but-cant-update-it/