Modify

Opened 5 years ago

Closed 5 years ago

#13630 closed defect (fixed)

Fields disappear after selection

Reported by: Andreas Owned by: Ryan J Ollos
Priority: normal Component: SimpleMultiProjectPlugin
Severity: critical Keywords:
Cc: Trac Release: 1.2

Description

In combination with SimpleMultiProjectPlugin, when I select a Milestone (same with Version), the milestone disappears 2-3 seconds after I have selected it. I don't get any errors in the browser console. Please see the attached video. When I deactivate SimpleMultiProjectPlugin, it's working again.

Attachments (1)

10-10-_2019_18-59-22.mp4 (303.2 KB) - added by Andreas 5 years ago.

Download all attachments as: .zip

Change History (20)

Changed 5 years ago by Andreas

Attachment: 10-10-_2019_18-59-22.mp4 added

comment:1 Changed 5 years ago by Ryan J Ollos

Was it working after we resolved #13609? If yes, what changed about your configuration in the time since?

comment:2 Changed 5 years ago by Ryan J Ollos

Status: newaccepted

comment:3 Changed 5 years ago by Andreas

As far as I know, I didn't change anything...seems like I didn't test is good enough

comment:4 Changed 5 years ago by Ryan J Ollos

Are you running r17526 of TracDynamicFields? Is your [ticket-custom] section still the same as in comment:7:ticket:13609?

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:5 Changed 5 years ago by Andreas

Exactly, I can confirm both. I also did a redeployment again, restarted the server and used Ctrl + F5 to refresh the browser

comment:6 Changed 5 years ago by Ryan J Ollos

I'll try to find time to investigate this weekend.

comment:7 Changed 5 years ago by Andreas

That would be great, thank you!

comment:8 Changed 5 years ago by Andreas

Is there anything (testing etc.) where I can help you?

comment:9 in reply to:  8 Changed 5 years ago by Ryan J Ollos

Replying to Andreas:

Is there anything (testing etc.) where I can help you?

You can debug the code using browser tools, to try and locate the problem.

comment:10 Changed 5 years ago by Andreas

I found that this only appears when I have one or more show_when_project-functions enabled, the rest seems to work.

For example:

testfield.show_when_project = testproject
Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:11 Changed 5 years ago by Ryan J Ollos

Thank you for the further investigation. I will try to reproduce this weekend.

comment:12 Changed 5 years ago by Andreas

That would be great, thank you!

comment:13 in reply to:  8 Changed 5 years ago by Ryan J Ollos

Replying to Andreas:

Is there anything (testing etc.) where I can help you?

I finally have some time to investigate.

There have been recent changes to DynamicFieldsPlugin. Please install and test with 2.5.0dev.

Next, can you provide a minimal [ticket-custom] section that reproduces the problem? Per comment:10, is it just?:

testfield1.show_when_project = testproject
testfield2.show_when_project = testproject

comment:14 Changed 5 years ago by Andreas

Okay, I have just downloaded and installed version 17738 (latest trunk), but unfortunately, nothing has changed.

This is my full ticket-custom:

[ticket-custom]
estimatedhours = text
estimatedhours.label = Estimated Hours
estimatedhours.value = 0
klstime = time
klstime.format = date
klstime.label = Implementation until
parent = text
parent.format = wiki
parent.label = Parent ID
project = select
project.label = Customer
project.options = Customer1|Customer2|Customer3|Alltheothercustomers
project.set_to_!_when_type = Defect
project.value = Customer1
servicemanager = select
servicemanager.label = Service Manager
servicemanager.options = |SM1|SM2|SM3|SM4|SM5|SM6
servicemanager.show_when_project = Customer1
status = select
status.label = Status
status.options = |Status1|Status2|Status3|Status4|Status5|Status6|Status7
totalhours = text
totalhours.label = Total Hours
totalhours.value = 0

And here is the list of my installed plugins:

ComponentDependencyPlugin 	0.1 	
SimpleMultiProject 	0.6.0.dev0 	
TicketSidebarProvider 	0.0.post0 	
TracAccountManager 	0.6.dev0 	
TracAutocompleteUsersPlugin 	0.4.4.dev0 	
TracAwesomeAttachments 	0.4.dev0 	
Tracchildtickets 	2.5.6.dev0 	
TracDragDrop 	0.12.0.14 	
TracDynamicFields 	2.5.0.dev0 	
TracHours 	0.7.4.dev0 	

I don't know if this helps, but here you can find my System Information:

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0

Trac 	1.2.5
Babel 	2.4.0
Genshi 	0.7.3 (with speedups)
mod_wsgi 	4.5.17 (WSGIProcessGroup WSGIApplicationGroup %{GLOBAL})
pysqlite 	2.6.0
Python 	2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0]
pytz 	2018.3
setuptools 	39.0.1
SQLite 	3.22.0
jQuery	1.11.3
jQuery UI	1.11.4
jQuery Timepicker	1.5.5

The whole thing is running on Ubuntu 18.04.4 LTS

comment:15 Changed 5 years ago by Ryan J Ollos

In 17743:

TracSimpleMultiProject 0.7.0dev: Fix fields reset on preview

This occurs when DynamicFieldsPlugin is installed.

Refs #13630.

comment:16 Changed 5 years ago by Ryan J Ollos

Component: DynamicFieldsPluginSimpleMultiProjectPlugin

comment:17 Changed 5 years ago by Ryan J Ollos

Could you please update SimpleMultiProjectPlugin to r17743 and retest?

comment:18 Changed 5 years ago by Andreas

With the latest version, the selected value doesn't disappear anymore - thanks for fixing this!

Unfortunately, I found another bug related to these two plugins / to this issue: When I open the dropdown menu for e.g. Customer for the first time in "/newticket", the menu automatically closes after ~1,5 seconds. Same behavior with other dropdown menus. If I open the menu for the second time, it stays open.

comment:19 in reply to:  18 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

Replying to Andreas:

Unfortunately, I found another bug related to these two plugins / to this issue: When I open the dropdown menu for e.g. Customer for the first time in "/newticket", the menu automatically closes after ~1,5 seconds. Same behavior with other dropdown menus. If I open the menu for the second time, it stays open.

This behavior occurs even without SimpleMultiProjectPlugin installed => #13821.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.