Magento 1 is not showing Dataflow Profile History

2018-01-13 00:26:25

This is Magento CE 1.9.3.2 installed from scratch, no themes, no extensions.

Go to Backend

From System -> Import/Export click on Dataflow Profiles

Click on profile with ID number 1 - Export All Products

Change the profile and Run it several times

Click on Profile History. You should see profile history. Click on [Search] button, nothing shows up. Select from Profile Action Run option do a Search, then Update option and do a Search. There are no rows showing up.

Checking Magento database, table [dataflow_profile_history] has information recorded. Column [action_code] has values like run and update.

Even the information is stored inside the database, Profile History in Dataflow Profiles is not showing information about Run, Create and Update of a profile. In my humble opinion this is a Magento bug. See the attachments.

Does anyone has a fix already for this issue?

Problem is the not correctly set ùser_id.

Fix (LTS):

Mage_Dataflow_Model_Profile::_afterS

  • Problem is the not correctly set ùser_id.

    Fix (LTS):

    Mage_Dataflow_Model_Profile::_afterSave()

    replace

    $adminUserId = $this->getAdminUserId();

    with

    $adminUserId = Mage::getSingleton('admin/session')->getUser()->getId();

    Mage_Dataflow_Model_Profile::run()

    replace

    Mage::getModel('dataflow/profile_history')

    ->setProfileId($this->getId())

    ->setActionCode('run')

    ->save();

    with

    Mage::getModel('dataflow/profile_history')

    ->setProfileId($this->getId())

    ->setActionCode('run')

    ->setUserId(Mage::getSingleton('admin/session')->getUser()->getId())

    ->save();

    Source: http://www.coolryan.com/magento/2013/10/28/fixing-profile-history-magento-dataflow-profiles/

    2018-01-13 03:05:56