Description
A clear and concise description of what the reported bug is:
ChurchCRM version: [5.10.0]
PHP version the server running: [PHP 8.2.21 (my install), also tested on PHP 8.2.22 (Softaculous Demo)]
DB Server and Version the server is running: [MariaDB 10.11.6 (my install), also tested on MySQL 8.0.39 (Softaculous Demo)]
Steps To Reproduce
Steps to reproduce the behavior:
Run Softaculous Demo / fresh install
Add a Family
Go to Family View of a new Family (/v2/family/1)
On the #Properties pane, click on round + icon
An Assign a New Property dialogue will open with "Single Parent" option in the drop-down menu
Go to People -> Admin -> Family Properties menu
Delete the Single Parent property and
Create some new (other) property
Go to Family View of your new Family (/v2/family/1)
On the #Properties pane, click on round + icon
An Assign a New Property dialogue will open with "Single Parent" option in the drop-down menu
Error no. 1 - Single Parent should not be there (was deleted in step 7)
Error no. 2 - Property created in step 8 should be there instead
Choose Single Parent property from the drop-down menu and try to assign it
Error no. 3 - ERROR dialogue will open:
Error making API Call to: /ChurchCRMjsvxa30s4x/api/people/properties/family/1/2, Error text: Slim Application Error
Refresh the Family View page several times, you should manage to get your new property (added in step 8) on the drop-down menu of the Assign a New Property dialogue eventually
Assign the new property
Error no. 4 - "No data available in table", "Showing 0 to 0 of 0 entries" and "No property assignments" messages are shown, and your new property is not shown in the table on the #Properties pane (but the property is actually properly assigned in the database in the 'record2property_r2p' table)
Refresh the Family View page several times, you should manage to get your new property visible in the table on the #Properties pane. But
Error no. 5 - "No data available in table", "Showing 0 to 0 of 0 entries" and "No property assignments" messages are still shown
Try to delete your new property from the table on #Properties pane.
Error no. 6 - your new property is still visible in the table (but it is actually properly removed from the database in the 'record2property_r2p' table)
Refresh the Family View page several times, you should manage to have your new property removed from the table on the #Properties pane.
Expected behavior
The + Assign A New Property dialogue of the #Properties pane on the Family View should instantly reflect properties added (or removed) on the Family Properties admin menu. Properties assigned using the Assign A New Property dialogue should be instantly visible in the table of the #Properties pane. Entry count below said table should show correct counts when there is some entry in the table. Removing the property from the table on the #Properties pane should remove it from this table instantly. The drop-down menu of the + Assign a New Property dialogue of the #Properties pane should not show non-existent properties.
Screenshots and/or logs
If applicable, please include screenshots or share logs to assist in explaining your issue.
📋 Relevant screenshots:
Desktop (please complete the following information):
OS and Version: [Windows 11]
Browser (and Version): [Chrome 128.0.6613.139]
Smartphone (please complete the following information):
Device: [Huhlawei P30 Pro]
OS: [Android 11]
Browser (and Version): [Chrome]
Additional context
It looks like there is some cache for the API calls?
Description A clear and concise description of what the reported bug is:
Steps To Reproduce Steps to reproduce the behavior:
Run Softaculous Demo / fresh install
Add a Family
Go to Family View of a new Family (/v2/family/1)
On the #Properties pane, click on round + icon
An Assign a New Property dialogue will open with "Single Parent" option in the drop-down menu
Go to People -> Admin -> Family Properties menu
Delete the Single Parent property and
Create some new (other) property
Go to Family View of your new Family (/v2/family/1)
On the #Properties pane, click on round + icon
An Assign a New Property dialogue will open with "Single Parent" option in the drop-down menu
Choose Single Parent property from the drop-down menu and try to assign it
Refresh the Family View page several times, you should manage to get your new property (added in step 8) on the drop-down menu of the Assign a New Property dialogue eventually
Assign the new property
Refresh the Family View page several times, you should manage to get your new property visible in the table on the #Properties pane. But
Try to delete your new property from the table on #Properties pane.
Refresh the Family View page several times, you should manage to have your new property removed from the table on the #Properties pane.
Expected behavior
The + Assign A New Property dialogue of the #Properties pane on the Family View should instantly reflect properties added (or removed) on the Family Properties admin menu. Properties assigned using the Assign A New Property dialogue should be instantly visible in the table of the #Properties pane. Entry count below said table should show correct counts when there is some entry in the table. Removing the property from the table on the #Properties pane should remove it from this table instantly. The drop-down menu of the + Assign a New Property dialogue of the #Properties pane should not show non-existent properties.
Screenshots and/or logs
If applicable, please include screenshots or share logs to assist in explaining your issue.
📋 Relevant screenshots:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
It looks like there is some cache for the API calls?