Fix that by_category and by_folder attributes do not work in dynamic publishing. bugid:110830