I'm writing a component and use the Build-In functions getForm() and loadFormData() to load data from the tables.
I'm using UUIDs as primaray keys for my tables to a void a guessing of IDs stored in the database. Unfortunately Joomla is expecting that IDs are always numeric:
I had to change a line in the file
/libraries/legacy/model/admin.php Line 858
if ($pk > 0)
should be
if (!is_null($pk))
Please confirm and change in the next version.
The behavior seems to be the same.
Allow alpha-numeric primary keys
Labels |
Removed:
?
|
Labels |
Added:
?
|
Status | New | ⇒ | Information Required |
Okay,
I didn't thought about it :-)
This could be a solution, too.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-04-23 00:19:04 |
Closed_By | ⇒ | brianteeman | |
Labels |
Removed:
?
|
is always true because of line 855
Why don't you use your own method getItem in your component model? You can override the parent method there.