$sql->update() in before/afterUpdate #5057
-
So my plugin allows the admin to add a vehicle to the database, when doing so they are also creating a new media category (core_media_cat) by using $sql->insert(); in afterCreate function in the plugin admin_config.php... That works. What I can't get to work is the $sql->update(); when I'm editing/updating the vehicle. The code I have is: $sql = e107::getDb(); $type = 'image_'; $fivem = $new_data['v_fmname']; $updateSQL = array( $sql->update('core_media_cat', $updateSQL);
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@LaocheXe again outside 'look', did you check if log files were created and written into the database? just an idea... maybe something is missing and needs to be added (unknown terrain) do read admin/update routine file..iff it has pointers?? success |
Beta Was this translation helpful? Give feedback.
-
Just to have it in one place: documentation for update() is wrong, This was correct answer: Maybe in new Moc documentation it is fixed. Sorry for short report, limited time for answer. |
Beta Was this translation helpful? Give feedback.
Just to have it in one place:
#4138
#3740
#3763
documentation for update() is wrong,
This was correct answer:
#3740 (comment)
Maybe in new Moc documentation it is fixed.
Sorry for short report, limited time for answer.