None of the data I'm entering into the term fields of a term are saved in the term_fields_term table... module is fully broken.

CommentFileSizeAuthor
#4 term_fields_integer_bug.patch1.31 KBhass

Comments

hass’s picture

I've found the source...

INSERT INTO term_fields_term (tid, isocode, country_nr, region_nr, type) VALUES (19, 'FR', 3, '', 'Country');

gives me Incorrect integer value: '' for column 'region_nr' at row 1.

Well, I haven't entered a value in this field as it's optional, but the query tries to use single quotes with integer fields. This is pretty wrong.

hass’s picture

Title: Term fields not saved! » No term fields saved if integer fields are empty
hass’s picture

hass’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

Found the bug. Patch attached, but may needs a re-role after #647178: #1. Code style review

hass’s picture

Status: Needs review » Fixed

Has been committed

Status: Fixed » Closed (fixed)

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