Issue 105921

Summary: InputUser field hast 2 fieldmasters
Product: Writer Reporter: mux2005 <mux2005>
Component: programmingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOO320m1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
test macro none

Description mux2005 2009-10-15 10:27:45 UTC
The attached document has an InputUser textfield (inserted manually via the
GUI). The textfield's XDependentTextField.getTextFieldMaster() method returns a
field master whose only connection to the text field seems to be that it lists
it in its DependentTextfields property. Other than that it does not seem to be a
real field master at all. It does not control the field's content nor does it
show up in the document's XTextFieldSupplier.getTextFieldMasters() collection.

The "real" fieldmaster can be obtained via
getByName("com.sun.star.text.fieldmaster.User.FOO"). Interestingly this field
master controls the actual content of the field but does not list it in its
DependentTextFields property.

To look at this yourself, open the attached test document, open the Basic IDE,
single-step to "End Sub" and then use the Watch window to examine the
"fakeFieldMaster" and "realFieldMaster" variables.
Comment 1 mux2005 2009-10-15 10:28:48 UTC
Created attachment 65382 [details]
test macro
Comment 2 eric.savary 2009-10-15 16:30:42 UTC
Reassigned to JSK
Comment 3 michael.ruess 2009-10-16 10:54:16 UTC
MRU->OS: please have a look. The getTextfieldmaster () does not return NAme or
Value of the field. Is it desired?
Comment 4 Marcus 2017-05-20 11:17:31 UTC
Reset assigne to the default "issues@openoffice.apache.org".