Issue 125086 - Regression Textfield.user cant be deleted via Script
Summary: Regression Textfield.user cant be deleted via Script
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 4.1.0
Hardware: All All
: P3 Normal
Target Milestone: 4.1.1
Assignee: Oliver-Rainer Wittmann
QA Contact:
URL:
Keywords: regression
Depends on:
Blocks: 124985
  Show dependency tree
 
Reported: 2014-06-12 16:45 UTC by soober
Modified: 2017-05-20 09:32 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---
jsc: 4.1.1_release_blocker+


Attachments
The attachement contains a Textfield.user and a macro designed to delete the textfield. (10.17 KB, application/vnd.oasis.opendocument.text)
2014-06-12 16:45 UTC, soober
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description soober 2014-06-12 16:45:27 UTC
Created attachment 83545 [details]
The attachement contains a Textfield.user and a macro designed to delete the textfield.

When a documents text contains a user-inputfield (textfield.user) and I try to delete it, only the first letter of the "Name"-Property will be deleted.

oTF.getAnchor().getText().removeTextcontent(oTF)

will lead to this effect or 

oTF.dispose()

also.

I'm using Win7 prof. SP1.

In the attachment the sub "delete" will show the effect.
Comment 1 Oliver Brinzing 2014-06-13 09:55:04 UTC
confirming with aoo410 w7 64bit

aoo401: field is deleted
aoo410: only first letter is deleted
Comment 2 Ariel Constenla-Haile 2014-06-13 14:43:48 UTC
May be introduced by "In-place editing of Input Fields" in 4.1.0.
Comment 3 Oliver-Rainer Wittmann 2014-06-16 09:06:21 UTC
taking over to have a closer look.

As Ariel I also think that my changes for the 'in-place editing of Input Fields' caused this defect.
Comment 4 jsc 2014-06-16 09:14:16 UTC
grant showstopper flag, regression
Comment 5 SVN Robot 2014-06-16 12:01:47 UTC
"orw" committed SVN revision 1602850 into trunk:
125086: correct UNO-API implementation for <com::sun::star::text::XTextField>...
Comment 6 Oliver-Rainer Wittmann 2014-06-16 12:11:53 UTC
fix on trunk is available
Comment 7 SVN Robot 2014-06-16 12:38:44 UTC
"orw" committed SVN revision 1602856 into branches/AOO410:
125086: correct UNO-API implementation for <com::sun::star::text::XTextField>...
Comment 8 Oliver-Rainer Wittmann 2014-06-16 12:45:36 UTC
fixed on branch AOO410 for the planned 4.1.1 release
Comment 9 Shenfeng Liu 2014-07-10 10:51:18 UTC
Verified on Windows 7. Reproduced this defect using 4.1.0 and confirmed it being fixed in 4.1.1 M1 build.