Sequence element - PK mode

Hello, I have in my form this element but when set to PK, the number is not generated correctly. For example last primary key used is 9, but number is generated only with zeros.
 
Make sure it is set also to autoincrement (in Fabrik list settings and check also directly in your DB with e.g. phpMyAdmin).
 
The ID is primary key and autoincrement. As I mentioned, last record has value 9, but if I create new record, it will get ID 10 but the sequence element will create value pefix+0000
 
ok, I missunderstood.
Yup, issue confirmed.
__pk_val is empty at this point, but rowid is set.

So in \plugins\fabrik_element\sequence\sequence.php line 188 should be
$sequence = (int) ArrayHelper::getValue($data, 'rowid', '');
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top