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
- 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.
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)"}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+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- 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