• Reinhold Kainhofer's avatar
    VM4.2: Workaround for broken VM model · 2aa1ba7e
    Reinhold Kainhofer authored
    VirtueMartModelState::getStates and VirtueMartModelCountry::getCountries changes the internal cache ->_data, but does NOT modify ->_id...
    The proper fix would be in VM's model classes to set the id to -1.
    However, as a workaround we can call setId twice to ensure the cache is always invalidated and getData returns the proper object