Closed dadinugroho closed 10 years ago
Hi @dadinugroho,
Seems you discovered a bug that occurred when I turned this code into a module.
Please download the latest version and try again. If you have success I'll release a new version.
Thanks for your time reporting this.
The link to download the latest (dev version) is here: https://github.com/cornernote/yii-audit-module/archive/master.zip
I have tried that. Still nothing in the field tabs. Should I put anything in here, 'additionalAuditModels' => array( ....?
Try comment out 'enableAuditField' => null,
.
It's supposed to put rows into audit_field table.
Yes, it works. Can I close this issue, or do you expect other result?
Thanks, mate. I am really appreciate your great support.
Awesome. I pushed a new release, but I'll have to look into why it doesn't work when 'enableAuditField' => null,
is uncommented.
Ahh, I see the issue. I was setting enableAuditField
to the value of AuditModule::enableAuditField in the constructor, however that gets overwritten when the behavior is attached. Pushing a fix now.
Hi cornernote,
All of my modules are inherited from MyActiveRecord. Since, I always have status field and use RememberFilterScenario.
Besides, the setting I made in main.php, I add the AuditFieldBehavior in MyActiveRecord. below is MyActiveRecord
What would be the correct setting? At the moment, I only have audit_log as the additional table after installing audit module. When I made changes to any of the model that inherits MyActiveRecord, no new table is added and checking in myinv-app.lan/audit in field tab, no entries.
Thanks a lot for your great support.