-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update AbstractTags.php #45
Conversation
catch an error if array key isn't set. the error show up when I save a model.
Could you fix the code style issues and author validation please? See travis build log. |
Works for me. @MoniqueHahnefeld can you pls fix the code style etc. so we can merge this PR? |
hey @MacKP |
phpcq |
yes ok I will check this with phpcq next time. |
@discordier @MacKP Sorry but i don't know when I going to optimize this code. Maybe you can do this or simply take over the lines? |
After a second thought, I wonder how the original problem is even possible. |
The problem was that I had an tags attribute which keys in the checkbox was id. After add many items in the backend I changed the key in the settings of the tags attribute from id to alias. Then the problem, say the error appear when I open an entry mask of one of the items in the Backend. This was the error:
|
So you are here trying to update a non existent value which should not happen at all. |
yes the values in the database are not useable then anymore - that's fakt. but the real problem is that i was not able to give in new values, because the error broke up the parsing of the attribute. so i think it's a relevant fix. I end up there because of customer wishes to change and I'm not sure, think the perception that the alias is nicer in the url as the id =) . it was a month ago... |
I meant how you end up in that code location with invalid values. |
@discordier i don't understand you. maybe we can talk about at the next opportunity? |
Hi Monique, how can I make a setup to test and check your PR? |
I still have no clue how to reproduce the issue this fix is fixing or trying to fix... |
no response... |
catch an error if array key isn't set. the error show up when I save a model.