Last modified: 2011-04-12 10:09:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T30293, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28293 - SF default= behaviour changed
SF default= behaviour changed
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-28 15:46 UTC by Neill Mitchell
Modified: 2011-04-12 10:09 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Neill Mitchell 2011-03-28 15:46:54 UTC
Hi.

I'm running SF 2.1.2 and I've noticed that the default= behaviour seems 
to have changed.

I have:

| {{{field|Time|input type=text|size=8|default=9am}}}

However, if the user deliberately clears the field (because they do not 
want the time at all), when the page is saved the default value is set. 
Also when editing using Edit with Form the default value is applied again.

It did not do this with earlier versions (tested with 2.0.9). The field used to stay cleared as the user wanted. The above is a trivial example. I have loads of use cases that are now broken by this changed behaviour.

Having the form re-populate with the default is a real pain. A null input is just as valid as a populated one in certain cases!

Any thoughts?

Thanks
Neill.
Comment 1 Yaron Koren 2011-04-10 21:12:32 UTC
I believe this is now fixed in SVN.
Comment 2 Gary Rodgers 2011-04-12 09:14:25 UTC
Thanks for looking at this Yaron. I will test.

:)
Comment 3 Neill Mitchell 2011-04-12 09:27:08 UTC
I'll check it out as well. Thanks for the fix Yaron.
Comment 4 Neill Mitchell 2011-04-12 10:09:46 UTC
Confirmed fixed. Great stuff Yaron.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links