Skip to content
Snippets Groups Projects
Commit f535bb02 authored by Laurent's avatar Laurent
Browse files

dev #17990 does not import hidden content

parent 464a76a1
Branches
Tags
2 merge requests!565Dev#17990 miop integration suite,!561Dev#17990 miop integration suite
......@@ -590,12 +590,11 @@ class Typo3DB {
}
public function findAllSites() {
return $this->t3db->fetchAll("select * from tt_news where deleted=0 and ext_url>'' order by uid ASC");
return $this->t3db->fetchAll("select * from tt_news where deleted=0 and hidden=0 and ext_url>'' order by uid ASC");
}
public function findAllArticles() {
return $this->t3db->fetchAll("select * from tt_news where deleted=0 and ext_url='' order by uid ASC");
return $this->t3db->fetchAll("select * from tt_news where deleted=0 and hidden=0 and ext_url='' order by uid ASC");
}
public function findAllForeignUidForNewsCat($uid) {
......@@ -608,11 +607,11 @@ class Typo3DB {
public function findAllCalendarEvents() {
return $this->t3db->fetchAll("select * from tx_cal_event where deleted=0 order by uid ASC");
return $this->t3db->fetchAll("select * from tx_cal_event where deleted=0 and hidden=0 order by uid ASC");
}
public function findAllContents() {
return $this->t3db->fetchAll("select * from tt_content where deleted=0 and header>'' and bodytext>'' and (ctype='text' or ctype='textpic') order by uid ASC");
return $this->t3db->fetchAll("select * from tt_content where deleted=0 and hidden=0 and header>'' and bodytext>'' and (ctype='text' or ctype='textpic') order by uid ASC");
}
}
?>
\ No newline at end of file
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with AFI-OPAC 2.0; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
trait Trait_TreeNode {
......@@ -55,20 +55,20 @@ trait Trait_TreeNode {
public function getParentsAndSelf() {
return ($parent = $this->getParent())
? array_merge($parent->getParentsAndSelf(), [$this])
: [$this];
return ($parent = $this->getParent())
? array_merge($parent->getParentsAndSelf(), [$this])
: [$this];
}
public function getParents() {
return ($parent = $this->getParent())
? $parent->getParentsAndSelf()
return ($parent = $this->getParent())
? $parent->getParentsAndSelf()
: [];
}
abstract public function getParent();
abstract public function getParent();
abstract public function getChildren();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment