- Edited
Hi,i just newbie of PHP and love musch on this osTicket.for this Mod combo could be apply in new ticket in agent panel ?
Hi,i just newbie of PHP and love musch on this osTicket.for this Mod combo could be apply in new ticket in agent panel ?
Also, when i disable Help topic but still appear on user list.
Huh?The Help Topic field cannot be disabled.
i think what he means when he disables a particular help topic, it is still shown to the end user in the dropdown
What version of osTicket?I just added a help topic called "disabled". I disabled it.I went to open a ticket, and it was not an available help topic.
What version of osTicket?
I just added a help topic called "disabled". I disabled it.
I went to open a ticket, and it was not an available help topic.
i'm using 1.9.5 and using Mod file from @[deleted]
Hello Guys!I'm almost finished with my tweak. I took a diferent approach. I decided on using a treecombo from easyui and it is working. Now I have to put the control in the rest of the forms in were its used and add the dynamic form action to show them on selection. Let me know if anyone is interested and I'll upload the code :)Here's how it looks in action. :)
Hello Guys!
I'm almost finished with my tweak. I took a diferent approach. I decided on using a treecombo from easyui and it is working. Now I have to put the control in the rest of the forms in were its used and add the dynamic form action to show them on selection. Let me know if anyone is interested and I'll upload the code :)
Here's how it looks in action. :)
@[deleted] Nice. May you please upload your code ?
@[deleted]
You should consider to make a pull request and when the developers like it, they may consider implementing the code into the source of osTicket.
https://github.com/osTicket/osTicket-1.8
Hello everyone. Here's the mod as promised. This mod was tested with the latest version of osTicket-v1.9.5.1 and it might not work with older versions. Just overwrite the files in the appropiate folders and should work right away. If you would like to see what was actually changed, do a ctrl+f for "@CHANGED".Dynamic forms are working, "Public" and "Disabled" options for the help topics too.Hope you guys like it,sosamv
Hello everyone.
Here's the mod as promised. This mod was tested with the latest version of osTicket-v1.9.5.1 and it might not work with older versions. Just overwrite the files in the appropiate folders and should work right away. If you would like to see what was actually changed, do a ctrl+f for "@CHANGED".
Dynamic forms are working, "Public" and "Disabled" options for the help topics too.
Hope you guys like it,
sosamv
@[deleted] Thanks a lot i tested and worked smoothly.
Thanks all of you for this great modifications
@sosamv,Awesome! Thanks so much :)Works like a charm, I am using osTicket v1.9.7 (stable).
Thanks so much for this project , But i have problem my user chose fisrt of combo box but no chose the second box and they can complete Ticket. Pls help me. thank everyone.
Hi,I have a problem with the helptopics in
the osticket support system.I´ve made a picture which is attached
below...Our problems is that we can not lock the multiple Combo boxes
topic folders.The clients can select the topic folder, which unfortunately
open an attached description window below.Basically they have to select
the sub categorys to open
the form table for selecting their help topics
Firstly - @[deleted] thank you so much for the work you have done on this, super useful!@[deleted],If I understand what your issue is, I had the same problem: If you set a "folder" (a help topic with children topics) to 'Private/Internal' (so an end user cant select it) it does not appear in the tree and neither does its children even if they are set to 'Public'. The only way to display the children topic is to make the parent 'Public' and then that means the an user can select it (which is bad)I an not entirely sure if this is expected behaviour (@[deleted] can you confirm). The issue is with the public check: if ($publicOnly && !$pub) this stops anything set as 'Private/Internal' being sent to self: and will not be processed and so its children have nothing to bind to in the jeasyui tree.A quick win would be to make all 'folders/parents' 'public' and do a check for children in the JS used on the client open.php page (open.inc.php) and stop anf folder from being selected, such as:$('#cc').combotree({ onSelect: function (r) { //Loads the dynamic form on selection if(r.children.length == 0){ var data = $('', '#dynamic-form').serialize(); $.ajax( 'ajax.php/form/help-topic/' + r.id, { data: data, dataType: 'json', success: function(json) { $('#dynamic-form').empty().append(json.html); $(document.head).append(json.media); } }); } else { $('#cc').combotree('clear') $('#dynamic-form').empty() } } });This is by no means a solution, and i am looking in to another way, but i hit an issue with jeasyui tree not having a way of disabling a click on a node, if any ones knows how to do that please let me know!Cheers :)
Another way I was looking at doing this was to allow sending private help topics to generateTree but also pass some additional data to jeasyui such as: $tree .= '"public" : "'.$datas.'",'; then use that to disable the click on anything that is private and has children, and not display anything that is private and does not have children. But as I previously said i can see a way to get jueasyui tree to disable a click action on a node.OK, i will stop posting rambling posts now :)
As I can put the required field in multiple combos Help Topics
help
As I can put the required field in multiple combos Help Topics