"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core-bundle/src/Resources/contao/models/ContentModel.php" between
contao-4.11.3.tar.gz and contao-4.11.4.tar.gz

About: Contao (fka TYPOlight) is a content management system (CMS). Latest release.

ContentModel.php  (contao-4.11.3):ContentModel.php  (contao-4.11.4)
skipping to change at line 431 skipping to change at line 431
{ {
$arrColumns = array("$t.pid=? AND $t.ptable=?"); $arrColumns = array("$t.pid=? AND $t.ptable=?");
} }
if (!static::isPreviewMode($arrOptions)) if (!static::isPreviewMode($arrOptions))
{ {
$time = Date::floorToMinute(); $time = Date::floorToMinute();
$arrColumns[] = "$t.invisible='' AND ($t.start='' OR $t.s tart<='$time') AND ($t.stop='' OR $t.stop>'$time')"; $arrColumns[] = "$t.invisible='' AND ($t.start='' OR $t.s tart<='$time') AND ($t.stop='' OR $t.stop>'$time')";
} }
// Skip unsaved elements (see #2708)
$arrColumns[] = "$t.tstamp!=0";
if (!isset($arrOptions['order'])) if (!isset($arrOptions['order']))
{ {
$arrOptions['order'] = "$t.sorting"; $arrOptions['order'] = "$t.sorting";
} }
return static::findBy($arrColumns, array($intPid, $strParentTable ), $arrOptions); return static::findBy($arrColumns, array($intPid, $strParentTable ), $arrOptions);
} }
/** /**
* Find all published content elements by their parent ID and parent tabl e * Find all published content elements by their parent ID and parent tabl e
skipping to change at line 468 skipping to change at line 471
{ {
$arrColumns = array("$t.pid=? AND $t.ptable=?"); $arrColumns = array("$t.pid=? AND $t.ptable=?");
} }
if (!static::isPreviewMode($arrOptions)) if (!static::isPreviewMode($arrOptions))
{ {
$time = Date::floorToMinute(); $time = Date::floorToMinute();
$arrColumns[] = "$t.invisible='' AND ($t.start='' OR $t.s tart<='$time') AND ($t.stop='' OR $t.stop>'$time')"; $arrColumns[] = "$t.invisible='' AND ($t.start='' OR $t.s tart<='$time') AND ($t.stop='' OR $t.stop>'$time')";
} }
// Skip unsaved elements (see #2708)
$arrColumns[] = "$t.tstamp!=0";
if (!isset($arrOptions['order'])) if (!isset($arrOptions['order']))
{ {
$arrOptions['order'] = "$t.sorting"; $arrOptions['order'] = "$t.sorting";
} }
return static::countBy($arrColumns, array($intPid, $strParentTabl e), $arrOptions); return static::countBy($arrColumns, array($intPid, $strParentTabl e), $arrOptions);
} }
} }
class_alias(ContentModel::class, 'ContentModel'); class_alias(ContentModel::class, 'ContentModel');
 End of changes. 2 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)