Closed (fixed)
Project:
Cloud
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2013 at 23:06 UTC
Updated:
28 Feb 2013 at 00:50 UTC
When trying to add user budget on the admin/config/cloud_metering/group_settings/%/edit page, the user budget is not saved.
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().