?
avatar rickynguyen
rickynguyen
28 Mar 2016

Steps to reproduce the issue

  1. Step1: Set JConfig $dbtype = 'pdomysql';
  2. Step2: Insert new record to db

     $session = JFactory::getSession();
    $objectUpload = new stdClass();
    $objectUpload->Id = null;
    $objectUpload->machine_id = UploadHelper::getMachineId();
    $objectUpload->file_list = json_encode([$attachment]);
    $objectUpload->session_token = $session->getId();
    $objectUpload->attachment_key = $attachmentKey;
    $objectUpload->attachment_type = $attachmentType;
    $objectUpload->status = $isInitialize == 'true' ? 0 : 4;
    $objectUpload->add_timestamp = time();
    
    $result = JFactory::getDbo()->insertObject('#__upload_queue', $objectUpload, 'Id');
    

Expected result

    $result=>Id > 0

Actual result

    $result=>Id  == 0

System information (as much as possible)

phpinfo.html.zip

Additional comments

avatar rickynguyen rickynguyen - open - 28 Mar 2016
avatar zero-24
zero-24 - comment - 28 Mar 2016

This is a known problem and sould be resolved with 3.5.1

You can also apply this patch here: aa99b10

avatar rickynguyen
rickynguyen - comment - 28 Mar 2016

Thnk bro!

avatar brianteeman brianteeman - close - 28 Mar 2016
avatar rickynguyen rickynguyen - change - 28 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-28 09:07:29
Closed_By rickynguyen
avatar rickynguyen rickynguyen - close - 28 Mar 2016
avatar brianteeman brianteeman - close - 28 Mar 2016
avatar brianteeman brianteeman - close - 28 Mar 2016
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Removed: ?
avatar brianteeman brianteeman - change - 22 Apr 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment