*BUG FIX* show aliases when page list filtered by page type

Permalink 0 0 Browser Info Environment
When the page list block was filtering by page type a minor typo in the PageList class was causing aliases to be missed. In concrete/models/page_list.php, in line 291 there is a section of the setQuery which reads:

left join PageTypes pt on (pt.ctID = (if (p2.cID is null, p1.ctID, p2.cID)))


I think this should be:

left join PageTypes pt on (pt.ctID = (if (p2.cID is null, p1.ctID, p2.ctID)))


If the page was an alias, it was grabbing the cID of the original page as the ctID, which was causing the page to get missed when checking for ctIDs.

Hope this helps!
Isaac Havard
Status: New
View Replies:
Mnkras replied on at Permalink Reply
Mnkras
fixed in the svn and concrete5.4.1
isaach replied on at Permalink Reply
Thanks Mnkras! : )

concrete5 Environment Information

# concrete5 Version
5.4.0.5

# concrete5 Packages
Flash Video (1.5.4).

# concrete5 Overrides
blocks/oprius_search, blocks/homepage_badge, blocks/preset_search, blocks/page_list, elements/header.php, themes/supportsitetemplate

# Server Software
Apache/2.2.15 (Amazon)

# Server API
apache2handler

# PHP Version
5.3.2

# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, ereg, exif, fileinfo, filter, ftp, gettext, gmp, hash, iconv, json, libxml, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 200
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 200
memory_limit - 128M
post_max_size - 200M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 200M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.62 Safari/534.3