It has the line:
$term->vid = $vid;
but $vid is undefined.
Changed it to:
$vocabulary = taxonomy_vocabulary_machine_name_load($machine_name);
$term->vid = $vocabulary->vid;and it works ok.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | scald_dailymotion_taxonomy_get_create3.patch | 1.41 KB | NerOcrO |
| #2 | scald_dailymotion_taxonomy_get_create2.patch | 1.25 KB | NerOcrO |
| #1 | scald_dailymotion_taxonomy_get_create.patch | 1.67 KB | NerOcrO |
Comments
Comment #1
NerOcrO commentedLike this?
Comment #2
NerOcrO commentedExcuse me, wrong branch...
This patch is better!
Comment #3
NerOcrO commentedOnce again, a minor correction.
Comment #4
NerOcrO commentedComment #6
DeFr commentedPushed the latest patch in commit b59d509. Thanks all !