hi guys,

when i create a term some db error appeared.about "taxonomy_changed_taxonomy_term_insert"
you can see the error image in attachment .

Please let me know if you would have any questions, objections, comments, suggestions, recommendations or concerns on any aspects of this bug report, I would be glad to provide more information or explain in more details.

Any questions, feedback, testing, changes, ideas or recommendations would be highly appreciated.
Thanks to all in advance.

CommentFileSizeAuthor
error-message.png25.52 KBycshen

Comments

jerenus’s picture

Status: Active » Patch (to be ported)

HI ycshen,
You can test again for this problem. I just push some modification 4d50c3c. But I think hook_taxonomy_term_insert and hook_taxonomy_term_update may not be the best way. I am more inclined to use hook_taxonomy_term_presave to solve this problem. So, if you have any solution, update here please.

Thanks!

skyredwang’s picture

Version: » 7.x-1.x-dev
Assigned: Unassigned » jerenus
Status: Patch (to be ported) » Needs work

hook_taxonomy_term_presave() should be implemented.

Also, this module needs to implement hook_taxonomy_term_view, so that the changed datetime can be displayed.

jerenus’s picture

hook_taxonomy_term_presave() was implemented. See this commit b03bdb3.

jerenus’s picture

Status: Needs work » Needs review

But I don't know how to display the changed datetime. The view page? Devel page? or Edit page? For now, it can display in devel, taxonomy item load and so on. And following your advice, I use hook_taxonomy_term_view to make it display on view page too(Like nodes' changed display). Waiting for more feedback. The patch you can see here c5dcb55.

jerenus’s picture

Issue summary: View changes
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.