[INSERT INTO `ost_attachment` SET `file_id` = 6, `type` = 'D', `object_id` = 1, `name` = 'screenshot-Z2E9'] Duplicate entry '1-6-D' for key 'file-type'<br /><br /> ---- Vzetí zpět ----<br /> #0 (root)/include/mysqli.php(204): osTicket-&gt;logDBError('DB Error #1062', '[INSERT INTO `o...')<br /> #1 (root)/include/class.orm.php(3133): db_query('INSERT INTO `os...', true, true)<br /> #2 (root)/include/class.orm.php(597): MySqlExecutor-&gt;execute()<br /> #3 (root)/include/class.attachment.php(161): VerySimpleModel-&gt;save()<br /> #4 (root)/include/ajax.draft.php(101): GenericAttachments-&gt;upload(Array)<br /> #5 (root)/include/ajax.draft.php(300): DraftAjaxAPI-&gt;_uploadInlineImage(Object(Draft))<br /> #6 [internal function]: DraftAjaxAPI-&gt;uploadInlineImage('1')<br /> #7 (root)/include/class.dispatcher.php(145): call_user_func_array(Array, Array)<br /> #8 (root)/include/class.dispatcher.php(38): UrlMatcher-&gt;dispatch('1/attach', Array)<br /> #9 (root)/include/class.dispatcher.php(120): Dispatcher-&gt;resolve('1/attach', Array)<br /> #10 (root)/include/class.dispatcher.php(38): UrlMatcher-&gt;dispatch('/draft/1/attach', NULL)<br /> #11 (root)/scp/ajax.php(262): Dispatcher-&gt;resolve('/draft/1/attach')<br /> #12 {main}