Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
The existing code was blindly doing a db_update(). If a new row was entered by the user, it was being treated as an update instead of a new row. The new code checks for the existence of the row first. If it doesn't exist, it is added using db_insert().
Comments
Comment #1
baldwinlouie commentedhttp://drupalcode.org/project/cloud.git/commit/4be4adf
The existing code was blindly doing a db_update(). If a new row was entered by the user, it was being treated as an update instead of a new row. The new code checks for the existence of the row first. If it doesn't exist, it is added using db_insert().