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
Ignore attributes when they contain arrays #188
Ignore attributes when they contain arrays #188
Conversation
There might be an issue regarding array'ed values, but your patch effectively stops anything from being logged at all.. Both will always be arrays as they contain a list of attributes and their values. |
Oh dammit. I will rework this, thanks for being that attentive. |
@Blizzke Just a kind reminder that this issue is still open. I am using the great yii2-audit module in an project and would dislike to do an own fork just because of this small change. Thanks a lot :) |
He seems to be afk for a while.
Please change your solution to Json::encode if it's an array.
Apart from that it looks good, happy to pull it in.
…On 1 Mar 2017 11:07 pm, "Herbert Maschke" ***@***.***> wrote:
@Blizzke <https://github.com/Blizzke> Just a kind reminder that this
issue is still open. I am using the great yii2-audit module in an project
and would dislike to do an own fork just because of this small change.
Thanks a lot :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADKo-7HfPR3E7-vfxuscMrdHMLCfy0cks5rhWaGgaJpZM4LsEQ_>
.
|
6010334
to
54ceb5f
Compare
@cornernote any progress with this issue? any chance to get this into the next release? thanks |
I can't seem to see a link to a pull request. Let me know what it is and
ill have a look
…On 5 Apr 2017 7:41 pm, "Herbert Maschke" ***@***.***> wrote:
@cornernote <https://github.com/cornernote> any progress with this issue?
any chance to get this into the next release? thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#188 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADKo3S2tE8TJMNQOsVAYDLoxzfiNhtZks5rs2jigaJpZM4LsEQ_>
.
|
This is an small workaround to avoid this error when using arrays as attribute values (which should be serialized somehow before saving and unserialized in afterFind()):
We should consider supporting this case properly in an future yii2-audit version.