Steps:
- Go to the "admin > content managment > taxonomy > list of terms"
- Change the order of the items in the terms list
- Click in "Save" button
Result: The values of classname for the terms will be lost.
Solution: In "taxonomy_classes.module" modify the function "taxonomy_classes_taxonomy".
function taxonomy_classes_taxonomy($op, $type, $data = NULL) {
$id = $type == 'vocabulary' ? $data['vid'] : $data['tid'];
if(isset($data['classnames'])) {
_taxonomy_classes_save($id, $type, $data['classnames']);
}
}
Best regards, Dimas.
Comments
Comment #1
nico heulsen commentedHi Dimas,
Thx for the feedback and the solution!
Commited the new code
Grtz
Nico