Fix nm refresh() not working if the ID was a number

This commit is contained in:
Nathan Gray 2013-03-20 16:17:23 +00:00
parent 3142b9fd1f
commit fee50cec99

View File

@ -300,7 +300,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
*/ */
refresh: function(_row_ids, _type) { refresh: function(_row_ids, _type) {
if (typeof _type == 'undefined') _type = 'edit'; if (typeof _type == 'undefined') _type = 'edit';
if (typeof _row_ids == 'string') _rowids = [_row_ids]; if (typeof _row_ids == 'string' || typeof _row_ids == 'number') _row_ids = [_row_ids];
if (typeof _row_ids == "undefined") if (typeof _row_ids == "undefined")
{ {
this.applyFilters(); this.applyFilters();
@ -317,7 +317,7 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
var uid = app + "::" + _row_ids[i]; var uid = app + "::" + _row_ids[i];
switch(_type) switch(_type)
{ {
case "update": case "edit":
if(!egw().dataRefreshUID(uid)) if(!egw().dataRefreshUID(uid))
{ {
// Could not update just that row // Could not update just that row
@ -1931,7 +1931,8 @@ var et2_nextmatch_customfilter = et2_nextmatch_filterheader.extend({
"widget_options": { "widget_options": {
"name": "Actual options", "name": "Actual options",
"type": "any", "type": "any",
"description": "The options for the actual widget" "description": "The options for the actual widget",
"default": {}
}, },
}, },
legacyOptions: ["widget_type","widget_options"], legacyOptions: ["widget_type","widget_options"],