#13483 closed defect (invalid)
Can't have kis2 working.
Reported by: | hakan | Owned by: | Jon Ashley |
---|---|---|---|
Priority: | normal | Component: | KeepInterfaceSimplePlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
Can't have kis2 working. Ubuntu 18.04, Trac 1.2.3. I see kis2.js loaded, without errors.
Plugins I have are mastertickets enabled. dynfields disabled and uninstalled. some other plugins are also installed but not enabled.
I am testing kis2 with a simple custom field labeled "one" as below, but can't have the field "invisible". attachment:trac.ini
[kis2-assistant] one.visible.all = status==assigned [ticket-custom] blockedby = text blockedby.label = Blocked By blocking = text blocking.label = Blocking one = text one.label = one
Attachments (3)
Change History (10)
Changed 6 years ago by
Attachment: | kis2_loaded.PNG added |
---|
Changed 6 years ago by
Attachment: | plugins.PNG added |
---|
Changed 6 years ago by
comment:1 Changed 6 years ago by
comment:3 Changed 6 years ago by
Good Morning Jon :)
Nope, quotes did not help.
I updated the statement to
[kis2-assistant] one.visible.all = status == 'assigned'
I also tried without .all suffix.
In the case where I forgot the quotes; as it does the check you mentioned that statement shall also return false and the field should not be visible.
comment:4 Changed 6 years ago by
Hmm... is the name of the section in the configuration file correct? From memory, I think it should be kis_assistant
not kis-assistant
(i.e. with an underscore in the middle rather than a hyphen).
comment:5 Changed 6 years ago by
Yes, that is it. Blinded with our coding standard,all lines for me is hyphen. Oh God! All those things I tried ! Thank you Jon.
comment:6 Changed 6 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:7 Changed 6 years ago by
That's good. Easy mistake to make. I should have guessed when you said it was loading without errors - it should have been throwing errors like "no field named 'assigned'".
Hello. Just woken up so I'm not at a computer at the moment to check that this is correct, but I think you need single quotes around the word 'assigned'. (Without the quotes, the plugin is looking for a field called 'assigned' and checking whether the value of that field matches the ticket status.)