summaryrefslogtreecommitdiff
path: root/services/resources.esp
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-04-11 23:01:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:58 -0500
commit87324298186bcab2f6eb04141b5f46a854a64cb2 (patch)
treed2d3815736dcaa67e6e9e52511028143290c1f47 /services/resources.esp
parent5904bbf3d9fc04c767f2667569c9d3fe7beafef2 (diff)
downloadsamba-87324298186bcab2f6eb04141b5f46a854a64cb2.tar.gz
samba-87324298186bcab2f6eb04141b5f46a854a64cb2.tar.bz2
samba-87324298186bcab2f6eb04141b5f46a854a64cb2.zip
r22179: Store resource id along with the object itself to be able to return
it as "number" type. This fixes a small problem with resource set method returning id of type "number" whereas find method was returning id of type "string". rafal (This used to be commit c3805aeb5e64aa66c0dfceb89efdf60bfb2134e8)
Diffstat (limited to 'services/resources.esp')
-rw-r--r--services/resources.esp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/resources.esp b/services/resources.esp
index e7fd164c34..b5c4bd3b3d 100644
--- a/services/resources.esp
+++ b/services/resources.esp
@@ -52,6 +52,7 @@ function _resourcesCreate()
/* Save the resource and its type */
r.resource = resource;
r.type = type;
+ r.id = this.resourceList.id;
/* Add this resource to the list */
this.resourceList[this.resourceList.id] = r;
@@ -110,7 +111,7 @@ function _resourcesCreate()
if (r.type == type)
{
/* Yup, this is the one they want. */
- return resourceId;
+ return r.id;
}
}
}