Hi,
After update (seblod 3.11.3) I encountred this problem :
I have a parent list (list of monthes) that calls a child list (list of created elements during the month).
I call my child list with a SEBLOD list field and for fields options first-day-of-month and last-day-of-month.
These two fields are calculated in a before render code
Before update, first-day-of-month and last-day-of-month where send correctly to SEBLOD list field options. That is what the debug wrote for May :
SELECT t0.id AS pid,t0.pk AS pk,t0.pkb AS pkb,t0.parent_id AS
parent,t0.author_id AS author,t0.cck AS cck,t0.storage_location AS
loc,tt.id AS type_id,tt.alias AS type_alias
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t1 ON t1.id = t0.pk
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t1.state = 1
AND t1.access IN (1,1,2,3,6,7)
AND ( t1.publish_up = '0000-00-00 00:00:00' OR t1.publish_up <= '2017-06-14 13:49' )
AND ( t1.publish_down = '0000-00-00 00:00:00' OR t1.publish_down >= '2017-06-14 13:49' )
AND t1.created >= '2017-05-01 00:00:00'
AND t1.created < '2017-05-31 00:00:00'
AND t0.cck = 'mplf'
ORDER BY t1.title ASC
SELECT COUNT(t0.id)
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t1 ON t1.id = t0.pk
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t1.state = 1
AND t1.access IN (1,1,2,3,6,7)
AND ( t1.publish_up = '0000-00-00 00:00:00' OR t1.publish_up <= '2017-06-14 13:49' )
AND ( t1.publish_down = '0000-00-00 00:00:00' OR t1.publish_down >= '2017-06-14 13:49' )
AND t1.created >= '2017-05-01 00:00:00'
AND t1.created < '2017-05-31 00:00:00'
AND t0.cck = 'mplf'
0.113 seconds (0.049); 16.37 MB (1.625) - afterSearch [Cache=OFF] = 6 results.
After update, first-day-of-month and last-day-of-month are not calculated by before render code. The created date is the first created element :
SELECT t0.id AS pid,t0.pk AS pk,t0.pkb AS pkb,t0.parent_id AS
parent,t0.author_id AS author,t0.cck AS cck,t0.storage_location AS
loc,tt.id AS type_id,tt.alias AS type_alias
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t1 ON t1.id = t0.pk
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t1.state = 1
AND t1.access IN (1,1,2,3,6,7)
AND ( t1.publish_up = '0000-00-00 00:00:00' OR t1.publish_up <= '2017-06-14 13:54' )
AND ( t1.publish_down = '0000-00-00 00:00:00' OR t1.publish_down >= '2017-06-14 13:54' )
AND t1.created >= '2016-10-27 16:40:50'
AND t1.created < '2016-10-27 16:40:50'
AND t0.cck = 'mplf'
ORDER BY t1.title ASC
SELECT COUNT(t0.id)
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t1 ON t1.id = t0.pk
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t1.state = 1
AND t1.access IN (1,1,2,3,6,7)
AND ( t1.publish_up = '0000-00-00 00:00:00' OR t1.publish_up <= '2017-06-14 13:54' )
AND ( t1.publish_down = '0000-00-00 00:00:00' OR t1.publish_down >= '2017-06-14 13:54' )
AND t1.created >= '2016-10-27 16:40:50'
AND t1.created < '2016-10-27 16:40:50'
AND t0.cck = 'mplf'
0.088 seconds (0.034); 10.66 MB (1.561) - afterSearch [Cache=OFF] = 0 result.
0.088 seconds (0.000); 10.66 MB (0.001) - afterRender
I have checked many times my fields, configuration, template... No way... It seems like after update, before render code comes after SEBLOD list field and not in previous version.
I would appreciate any help !