Loading...
 
Skip to main content

Trackers, Dynamic List and Item Link fields; Field value is lost after parent item changed status (cascade parameter not applied?)

Status
Open
Subject
Trackers, Dynamic List and Item Link fields; Field value is lost after parent item changed status (cascade parameter not applied?)
Version
25.x
Category
  • Regression
Feature
Trackers
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Related-to
Description

This was in use as is since Tiki21 or Tiki22 and they were no noticeable issues even after upgrading from Tiki24 to Tiki25. This is a regression from inside Tiki25 branch.

On a tracker I have items with an itemLink and a dynamicList depending of this itemLink.
Both are set to filter "open" items.

The itemLink (parent) has its parameter "Cascade actions" set to "No".

Elements to cascade when the master is updated or deleted. Categories may conflict if multiple item links are used to different items attempting to manage the same categories. Same for status.

At the time of the creation of an item I selected a value from a parent tracker for the itemLink and one of the possible value for the dynamicList.

At that time all items (children and parents included) were open.

As it is an "event" selection for a trackeritem. (holiday selection).
When the event time was over I close the parent item so user can't select it anymore knowing that the "Cascade actions" was set to "No". This was in use as is since Tiki21 or Tiki22 and they were no noticeable issues even after upgrading from Tiki24 to Tiki25.

Recently I have issues when rebuilding the index and I found out that all children values were gone.
The parent itemLink is now close.
The child itemLink has been lost its value (changing the filter doesn't allow to retrieve the previous value)
The dynamicList that is dependent of the itemLink above has also lost its value.

Rebuilding the index display an error about empty values. Reported at: https://dev.tiki.org/item8437-Trackers-Dynamic-List-field-Dynamic-List-fields-throws-error-when-rebuilding-the-index-if-its-parent-field-has-no-value

Importance
10 high
Easy to solve?
5
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8440
Created
Tuesday 27 June, 2023 08:02:17 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Tuesday 27 June, 2023 19:24:35 UTC


Show PHP error messages