English Support Forum

icon
Avatar
jrariasf
Posts: 53
The situation is: (ME 1.6.1 and Joomla 1.5.14)
- Imagine a database with 23 objects in #__misterestate table ("id" from 1 to 23)
- In frontend, delete the last object (suppose It has id=23 in "id" column of #__misterestate table)
- Now, create a new object.
- In Gallery tag try to upload an image. After push "Upload" button, in #__misterestate_images table appears a new register with objid to 23. This "23" has been calculated in line 162 of "components/misterestate/user.misterestate.php" file:
iconphp:
 
$query = "SELECT id FROM #__misterestate ORDER BY id ASC";
$db->setQuery($query);
$result = $db->loadResultArray();
 
if(count($result) == 0 || $result == "") $obj->id = 1;
else $obj->id = (end($result) + 1);
 


- Finally, press "Save" button to keep the object in the database.

But, here is the BUG: The new object have an id=24 in "#__misterestate" table.
Consecuence: The last upload images doesn't belong to any object because the "objid" is 23 in #__misterestate_images

Please Darko,
can you tell me a solution?
I think the error is located in MEObject class and the store() method of JTable.
store method is called from saveObject function in "user.misterestate.php" file.

Please, I need a solution. In backend occurs the same.
Thanks.
[Last edited by jrariasf, 14.01.2010 16:48]
14.01.2010 16:38
Avatar
jrariasf
Posts: 53
Please, two weeks without an answer.....
01.02.2010 11:54
Avatar
admin
Moderator
Posts: 887
Hi,

sorry for late response. I moved to another city in January and did not have much time for support.

Thank you for the hint. I´m gonna search for a better solution and include it into the next update.

best regards
01.02.2010 17:28
Avatar
jrariasf
Posts: 53
iconadmin:
Hi,

sorry for late response. I moved to another city in January and did not have much time for support.

Thank you for the hint. I´m gonna search for a better solution and include it into the next update.

best regards


Well.... I hope the solution were for version 1.6.1
08.02.2010 11:41
icon