Skip to content
Snippets Groups Projects
Commit c9888903 authored by rswindell's avatar rswindell
Browse files

Bug-fix: MsgBase.get_msg_header() expand_fields argument is supposed to default

to 'true'. This was apparently broken in the "lazy resolve" optimizations of Q108.
This should fix the problems with newslink.js exporting messages imported with
SMBUTIL.
parent e9d58e4f
No related branches found
No related tags found
No related merge requests found
...@@ -932,7 +932,6 @@ js_get_msg_header(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * ...@@ -932,7 +932,6 @@ js_get_msg_header(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *
uintN n; uintN n;
JSObject* hdrobj; JSObject* hdrobj;
JSBool by_offset=JS_FALSE; JSBool by_offset=JS_FALSE;
JSBool expand_fields=JS_TRUE;
privatemsg_t* p; privatemsg_t* p;
*rval = JSVAL_NULL; *rval = JSVAL_NULL;
...@@ -955,6 +954,7 @@ js_get_msg_header(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval * ...@@ -955,6 +954,7 @@ js_get_msg_header(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *
} }
/* Parse boolean arguments first */ /* Parse boolean arguments first */
p->expand_fields=JS_TRUE; /* This parameter defaults to true */
for(n=0;n<argc;n++) { for(n=0;n<argc;n++) {
if(!JSVAL_IS_BOOLEAN(argv[n])) if(!JSVAL_IS_BOOLEAN(argv[n]))
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment