Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Help Topics in multiple combos

13

Comments

  • Also, when i disable Help topic but still appear on user list.
  • Huh?

    The Help Topic field cannot be disabled.
  • edited March 2015
    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 @suntas.
  • 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. :) image
    Screenshot_1.png
    750 x 324 - 22K
  • 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. :) 
    @sosamv. Nice. May you please upload your code ?
  • @sosamv
    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
    osticketHTTree.zip
    107K
  • 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
    @sosamv. 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.
  • edited April 2015
    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




    osticket1.png
    1007 x 341 - 20K
  • Firstly - @sosamv thank you so much for the work you have done on this, super useful!

    @baeumer,

    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 (@sosamv can you confirm). The issue is with the public check: if ($publicOnly && !$pub) this stops anything set as 'Private/Internal' being sent to self::generateTree 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 = $(':input[name]', '#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[$i]['public'].'",'; 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
  •  As I can put the required field in multiple combos Help Topics
  • Hey @pabloaranda sorry but I am not sure what you are asking :/
  • As I can make multiple combos, they are required because when selecting a theme other sub-theme
    is deployed and that no escojen. and send the ticket
    111.jpg
    851 x 443 - 58K
  • edited May 2015
  • you are using the old code. @sosamv posted new code above, use that one :)

  • ME NOT WORK IN THAT FORM THAT CAN CHANGE CODE FOR MANDATORY FIELD
  • edited May 2015


    1111.jpg
    851 x 305 - 32K
  • I deleted your duplicate post. 
    Please stop yelling at the person that is trying to assist you.

  • Isn't using the new treecombo from easyui defeating the purpose of having 2 containers so you don't have a long list of help topics? I understand that now its a cleaner look but you would still have to create Access Requests, Application issues, etc... for each Software you want it to pertain to? Wouldn't having a container and sub container be better so you can list the names of the applications as the main container and for the sub container list the type of issue they are? 
  • Hey I have put in this mod to my OSticket system. The selection works great but when you click on submit ticket it gives me a 500 internal server error everytime. Looks like something on the **websitename**/open.php is the issue. Has anyone else run into this issue?

    Thanks, 
Sign In or Register to comment.