Loading...
 
Skip to main content

Trackers, Plugin tracker; Field permissions issue when creating an item with a wikiplugin preventing the auto-increment to be populated on save

Status
Open
Subject
Trackers, Plugin tracker; Field permissions issue when creating an item with a wikiplugin preventing the auto-increment to be populated on save
Version
24.x
Category
  • Regression
Feature
Trackers
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Keep informed
Jonny Bradley
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

I have a Tiki24 with tracker where registered users from a specific group can order a product (create an item).
This tracker has an auto-increment field (field 314) to auto generate order number (set to itemId).

Update (2022-08-15): This field has editable permissions so Admin and Boss can edit it but not the Registered users.
Image

Before my last update, when Registered users creates an item through a wikiplugin plugin embedded in a smarty template the items created had a the itemId saved in that field.

Copy to clipboard
{wikiplugin _name=tracker trackerId="22" fields="340:331:332:329:317" action="Continue to payment" url="checkout?itemId" autosavefields="465" autosavevalues="category(76)"}{/wikiplugin}

Note: This field (f_314) is not part of the wikiplugin code, it was saved on creation (adding it didn't solved the issue)

After my last update from git items are saved with an empty field. (see screenshot)

This happen only with wikiplugin, if I use a tracker plugin in a wiki page it's working with it's previous behaviour.

Copy to clipboard
{tracker trackerId="22" fields="340:331:332:329:317" action="Continue to payment" url="checkout?itemId" autosavefields="465" autosavevalues="category(76)"}


Image

If I remove the "Editable by" permission for Admins and Boss, when Registered user creates an item a serial Id is saved.

Importance
7
Easy to solve?
7
Priority
49
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8174
Created
Sunday 14 August, 2022 05:28:15 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 15 August, 2022 08:02:05 UTC


Show PHP error messages