Hello,

System Details: CENTOS 7.1.1503 | Apache 2.4.10 | PHP 5.6.10 | MySQL 5.6.25 | OsTicket version 1.9.8.1

I am facing a problem in the new ticket creation section.If I attach several files to a ticket and I wish to delete one of them before submitting the ticket. The deleted attachment is still present in the newly created ticket.Below is a print screen of the page: When attaching file (print screen 1) and I chose to delete it (print screen 2), the deleted file remains in the ticket after submitting it (print screen 3).

 blank

Thanks

 

Just tested with our osTicket (1.9.8 not 1.9.8.1) here, but there is everything fine - only the attachments from the "print screen 2" are uploaded in our case.But have to admit that I do not have an idea currently what this could be. Did you check your log files - maybe there is an error thrown in the background and hence both files are then uploaded.Btw. I know our version is different, but I as far as I know the hotfix release (1.9.8.1) hadn't any changes in it regarding file upload.

In fact I tried with older version of osTicket (1.9.7), and I am getting the same problem! I will dig the log files and update.

No error in the apache logs and OsTicket system logs.I am doing all the test on Internet Explorer 11 on Windows 7. What browser you are using?

Tested with Safari, Chrome and Firefox browsers, the attachment problem is OK!

I ran Internet Explorer in debug mode and found the cause of the problem in object 'this.remove()' which is not supported. The file is filedrop.field.js blank

Tested it only in Chrome 42 (or whatever is currently the latest version of Chrome).So see I this correctly, that it's just IE which does not work?If so I think you should open a bug report over at github and maybe @[deleted] can include this thread to his report to the devs.

I noticed that in OsTicket 1.9.7, a note is included in the filedrop.field.js and includes the workaround.

  deleteNode: function(filenode, e) {      if (!e || confirm(__('You sure?'))) {        var i = this.uploads.indexOf(filenode);        if (i !== -1)            this.uploads.splice(i,1);        filenode.slideUp('fast', function() { this.remove(); }); //for IE, it is not supported {$(this).remove();}

I modified filedrop.field.js from this.remove to $(this).remove and the problem was sorted out!

Write a Reply...