Table with zerofill for ID in database with versioning.
For example ID 0012 and 0202
History is saved and fetched correctly.
If editing entry with ID 0202:
History is saved in table _history with $typeAlias.202
Versioning does not work because it tries to fetch $typeAlias.0202 in backend.
So no history is shown and versioning is unable to be used.
If the solution is "stop using zerofill stupid" ? Then I would appreciate tips on how to force fetch :item_id without zerofill in custom component model file. Thanks!
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
thanks for reporting
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-14 15:21:13 |
Closed_By | ⇒ | alikon |
Solved it for my custom component by changing my models
public function getItem($pk = null)
and adding
$item->ID = intval($item->ID);
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41747.