Commit 6688dd7
committed
Changed display conditions
I was trying to solve issue with display conditions when using simple
view in ticket menu
The issue was that when you add a container, field to it, and then
create display condition, the condition will not work as expected in
simple view of ticket creation. The condition will never be satisfied
and your field will always stay visible, no matter what condition you
created
Turned out, GLPI_POST_ITEM HOOK send item parameter without 'type' and
'itilcategory_id', those fields were contained in options parameter.
This is small work around, works fine for my use case1 parent ebd334f commit 6688dd7
2 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
| 413 | + | |
412 | 414 | | |
413 | 415 | | |
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
418 | 420 | | |
| 421 | + | |
419 | 422 | | |
420 | 423 | | |
421 | 424 | | |
| |||
425 | 428 | | |
426 | 429 | | |
427 | 430 | | |
428 | | - | |
| 431 | + | |
| 432 | + | |
429 | 433 | | |
430 | 434 | | |
431 | 435 | | |
| 436 | + | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
889 | 901 | | |
890 | 902 | | |
891 | 903 | | |
| |||
956 | 968 | | |
957 | 969 | | |
958 | 970 | | |
959 | | - | |
| 971 | + | |
960 | 972 | | |
961 | 973 | | |
962 | 974 | | |
| |||
967 | 979 | | |
968 | 980 | | |
969 | 981 | | |
970 | | - | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
971 | 988 | | |
972 | 989 | | |
973 | 990 | | |
| |||
976 | 993 | | |
977 | 994 | | |
978 | 995 | | |
979 | | - | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
980 | 1001 | | |
981 | 1002 | | |
982 | 1003 | | |
983 | 1004 | | |
984 | 1005 | | |
985 | 1006 | | |
986 | 1007 | | |
| 1008 | + | |
| 1009 | + | |
987 | 1010 | | |
988 | 1011 | | |
989 | 1012 | | |
| |||
0 commit comments