Closed
Bug 331961
Opened 18 years ago
Closed 18 years ago
Partial submission "required check" is wrong
Categories
(Core Graveyard :: XForms, defect)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: allan, Assigned: allan)
References
()
Details
(Keywords: fixed1.8.0.4, fixed1.8.1)
Attachments
(2 files)
There is an error in the required checking in the submission handling. It checks for requiredness of the @ref'ed node AND its siblings. This happens both in CanSubmit() and CopyChildren(), so this is wrong for all types of submissions.
Assignee | ||
Comment 1•18 years ago
|
||
Assignee | ||
Updated•18 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•18 years ago
|
||
Fix by not checking siblings on first run of CopyChildren() and CanSubmit() (by respectively using depth and adding parameter). I also fixes the GetModel() issue mentioned in bug 326452.
Attachment #216520 -
Flags: review?(aaronr)
Attachment #216520 -
Flags: review?(aaronr) → review+
Assignee | ||
Updated•18 years ago
|
Attachment #216520 -
Flags: review?(smaug)
Comment 3•18 years ago
|
||
Comment on attachment 216520 [details] [diff] [review] Patch >+ NS_HIDDEN_(nsresult) CopyChildren(nsIModelElementPrivate* model, nsIDOMNode *source, nsIDOMNode *dest, nsIDOMDocument *destDoc, SubmissionAttachmentArray *, const nsString &cdataElements, PRBool indent, PRUint32 depth); Way too long line. Fix that, r=me
Attachment #216520 -
Flags: review?(smaug) → review+
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3) > (From update of attachment 216520 [details] [diff] [review] [edit]) > > >+ NS_HIDDEN_(nsresult) CopyChildren(nsIModelElementPrivate* model, nsIDOMNode *source, nsIDOMNode *dest, nsIDOMDocument *destDoc, SubmissionAttachmentArray *, const nsString &cdataElements, PRBool indent, PRUint32 depth); > > > Way too long line. Fix that, r=me Please do check the rest of that file... they are all like that :( Not that I like, but then all of them should be fixed.
Comment 5•18 years ago
|
||
(In reply to comment #4) > Please do check the rest of that file... they are all like that :( Not that I > like, but then all of them should be fixed. > Well, why don't you fix them ;)
Assignee | ||
Comment 6•18 years ago
|
||
(In reply to comment #5) > (In reply to comment #4) > > Please do check the rest of that file... they are all like that :( Not that I > > like, but then all of them should be fixed. > > > > Well, why don't you fix them ;) /me throws a tortilla after smaug
Assignee | ||
Comment 7•18 years ago
|
||
Checked into trunk
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: xf-to-branch
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.0.3,
fixed1.8.1
Assignee | ||
Updated•18 years ago
|
Whiteboard: xf-to-branch
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•