Bug #44336
closedChanging maxW in constant-editor adds multiple lines
0%
Description
In an otherwise still empty extension-template using the constant-editor to change maxW for imgtext results in 4 lines being added - without a deeper reason imho.
styles.content.imgtext.maxW = 880
styles.content.imgtext.maxWInText = 0
styles.content.imgtext.linkWrap.width = 800
styles.content.loginform.pid = 0
(Experienced this on 6.0.0; other versions might be affected as well.)
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Closed
- Is Regression set to No
Pretty simple:
Those all qualify as "int+" in the constants editor but don't have values set.
So then the constant editor saves its data "" does not qualify as int, thus it will be generated.
Updated by Stefan Neufeind almost 10 years ago
Should we supply default-values in TS? Or should the editor ignore empty settings / not generate lines for them? Changing one line and getting four instead sounds somewhat broken imho. Why does it generate lines for settings I didn't change at that moment anyway?