Hi,
in my iTop 3.1.1 develeopment environment I am testing setting colours based on custom enum values.
I added a new state (status) to class UserRequest and defined a color:
If I update the iTop code using the toolkit I get this error:
parse error: failed at $ibo-dm-enum--UserRequest-status-pending_supplier#d8e096#d8e096fas_fa_hourglass_half--main-color: #d8e096 !default; /tmp/itop-4Zelgb//branding/themes/datamodel-compiled-scss-rules.scss on line 531, at column 1
Hi,
in my iTop 3.1.1 develeopment environment I am testing setting colours based on custom enum values.
I added a new state (status) to class UserRequest and defined a color:
If I update the iTop code using the toolkit I get this error:
As described in the documentation (https://www.itophub.io/wiki/page?id=3_1_0:customization:enum-colors) it should work like this.
What am I doing wrong?
Thanks,
Nico
Hello Nico,
Check that you set the XML version to 3.0 at the top of your XML file.
Hope it helps,
Guillaume
Hi Guillaume,
thanks for the hint. I changed it to
And now it works.
Thanks again,
Greetings,
Nico
Hello, Good to hear :)
As a reference on iTop XML format versions : https://www.itophub.io/wiki/page?id=3_1_0:customization:xml_reference#changes_history
Glad to see you fixed your issue!
Take care,
Guillaume