|
|
@@ -402,6 +402,7 @@ LUNGO.Service = (function(lng, $, undefined) {
|
|
|
$.ajax({
|
|
|
type: type,
|
|
|
url: url,
|
|
|
+ data: data,
|
|
|
dataType: 'json',
|
|
|
success: function(response) {
|
|
|
if (lng.Core.toType(callback) === 'function') {
|
|
|
@@ -1496,7 +1497,7 @@ LUNGO.Data.Sql = (function(lng, undefined) {
|
|
|
* @param {object} [OPTIONAL] Object selection condition
|
|
|
*/
|
|
|
var drop = function(table, where_obj) {
|
|
|
- var where = (where_obj) ? ' WHERE ' + _convertToSql(where_obj, 'AND') : null;
|
|
|
+ var where = (where_obj) ? ' WHERE ' + _convertToSql(where_obj, 'AND') : '';
|
|
|
|
|
|
execute('DELETE FROM ' + table + where + ';');
|
|
|
};
|