Skip to content

Commit

Permalink
Quick change to avoid erasing the table
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Jul 24, 2018
1 parent 944d496 commit 6355812
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/cms/cck/content.php
Expand Up @@ -1848,7 +1848,9 @@ protected function _setContentById( $identifier )

$this->_setObjectMap();

$this->_table = self::$objects[$this->_object]['properties']['table'];
if ( self::$objects[$this->_object]['properties']['table'] != '' ) {
$this->_table = self::$objects[$this->_object]['properties']['table'];
}

if ( !$this->_table ) {
$this->reset( true );
Expand Down Expand Up @@ -1890,7 +1892,9 @@ protected function _setContentByType( $content_type )

$this->_setObjectMap();

$this->_table = self::$objects[$this->_object]['properties']['table'];
if ( self::$objects[$this->_object]['properties']['table'] != '' ) {
$this->_table = self::$objects[$this->_object]['properties']['table'];
}
} else {
$type = JCckDatabaseCache::loadObject( 'SELECT id, parent, permissions FROM #__cck_core_types WHERE name = "'.$this->_type.'"' );

Expand Down

0 comments on commit 6355812

Please sign in to comment.