thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.79k stars 2.67k forks source link

Getting "undefined index: en" error when editing/saving English rich text box fields of a dual language website #5417

Open i6rahim-najjar opened 3 years ago

i6rahim-najjar commented 3 years ago

Laravel version

6.16.0

PHP version

7.3

Voyager version

1.3.1

Database

MySQL MariaDB 10.1

Description

When I edit a rich text box in the dashboard I get this error: "undefined index: en" vendor/tcg/voyager/src/Traits/Translatable.php:357

Please note that I can edit the second language's rich text box successfully.

Steps to reproduce

Expected behavior

Save the changes successfully

Screenshots

No response

Additional context

No response

emptynick commented 3 years ago

There have been a lot of changes in more recent Voyager versions. Did you try to update?

i6rahim-najjar commented 3 years ago

There have been a lot of changes in more recent Voyager versions. Did you try to update?

Thank you for your prompt assist, I hope I can fix it without updating the version because it may cause a lot of issues

emptynick commented 3 years ago

There are not that much breaking changes between 1.3 and 1.4