Sam Minnee
1691e90fbd
NEW: Allow SapphireTest::objFromFixture() to accept either table or class
...
Right now SapphireTest::objFromFixture() requires a class as the first
argument. This is fine when your fixture file uses classes as the keys,
but if populating a fixture via tables, objFromFixture() won’t work.
This patch lets you specify either the table name or the class name as
the key.
The benefit here is that you can build fixtures as raw inserts, which is
substantially quicker, and is likely to be a useful tool in building
more efficient test suites.
2017-05-05 10:53:49 +12:00
Aaron Carlino
dd7777321f
Added 4.0.0-alpha7 changelog
2017-05-02 13:16:17 +12:00
Aaron Carlino
7c67d29484
Update translations
2017-05-02 10:46:54 +12:00
Damian Mooyman
12fc690d80
Merge pull request #6850 from robbieaverill/bugfix/i18n-lang-region-same
...
FIX IntlLocales::validate when lang and region are the same e.g. de_DE
2017-05-01 08:41:44 +12:00
Damian Mooyman
8dd3f4ce1d
Fix template localisation namespaces ( #6852 )
2017-05-01 08:28:24 +12:00
Stevie Mayhew
0d6da9b0e8
Merge pull request #6858 from Firesphere/pulls/typo
...
Fix quote outside the if statement.
2017-04-30 17:44:16 +12:00
Simon Erkelens
391901df87
Fix quote outside the if statement.
2017-04-29 17:14:35 +12:00
Damian Mooyman
3f9528a073
Merge pull request #6849 from robbieaverill/bugfix/extension-arguments-in-sapphiretest
...
FIX Regression from 3.x: allow $required_extensions to have arguments
2017-04-28 20:29:11 +12:00
Robbie Averill
3a372a1f41
FIX IntlLocales::validate when lang and region are the same e.g. de_DE
2017-04-28 17:19:27 +12:00
Damian Mooyman
03750acbee
API Namespace i18n keys
2017-04-28 16:08:35 +12:00
Damian Mooyman
82dd157741
Remove empty localisations
2017-04-28 15:09:36 +12:00
Damian Mooyman
2fa7598261
Shift hierarchy namespace i18n key
2017-04-28 14:59:42 +12:00
Damian Mooyman
23710cf23e
Run upgrader
2017-04-28 14:59:42 +12:00
Damian Mooyman
7b4b133ad8
Remove unused keys (textcollector with merge=0)
2017-04-28 14:59:42 +12:00
Damian Mooyman
fce38e0f5b
Revert yml files to transifex
2017-04-28 14:59:42 +12:00
Damian Mooyman
699d5d6a42
Fix i18nTextCollector handling of special string characters
2017-04-28 14:59:42 +12:00
Damian Mooyman
2ae8fde2d3
Fix tests
2017-04-28 14:59:42 +12:00
Aaron Carlino
7b7b3810e6
Merge permission translations back in
2017-04-28 14:59:42 +12:00
Aaron Carlino
20985bc484
alphabetise keys
2017-04-28 14:59:42 +12:00
Aaron Carlino
978d9a36df
remove js transifex
2017-04-28 14:59:42 +12:00
Aaron Carlino
48343f1620
Remove client side lang
2017-04-28 14:59:42 +12:00
Uncle Cheese
d51c4891e2
New namespaced i18n keys
2017-04-28 14:59:42 +12:00
Uncle Cheese
494cbd1875
Ran upgrader for lang files
2017-04-28 14:59:42 +12:00
Damian Mooyman
61388b153f
API Rewrite Date and Time fields to support HTML5
2017-04-28 10:06:37 +12:00
Ingo Schommer
daed727acc
Fixed form schema validation
2017-04-28 08:30:59 +12:00
Ingo Schommer
22f232ed4d
Mark up <time> in validation errors
...
Allow better localisation of values in JS
2017-04-27 21:44:52 +12:00
Ingo Schommer
a2ee6a76a0
Fixed formschematest
2017-04-27 21:44:28 +12:00
Robbie Averill
c95c6c466f
FIX Regression from 3.x: allow $required_extensions to have arguments
2017-04-27 17:59:52 +12:00
Ingo Schommer
cbe534c675
Fixed component capitalisation
2017-04-27 15:36:18 +12:00
Ingo Schommer
94b49e3e28
Removed unused field
2017-04-27 15:36:11 +12:00
Ingo Schommer
60706c8efd
Store $value in ISO and server timezone consistently, fix min/max timezone handling
2017-04-27 14:59:11 +12:00
Chris Joe
16aebb83e4
Merge pull request #6831 from robbieaverill/patch-6
...
DOCS Remove tabs from JSON examples to fix code blocks
2017-04-27 13:44:05 +12:00
Ingo Schommer
628fd216ad
PHPDoc fixes
2017-04-27 11:56:23 +12:00
Ingo Schommer
f01a20d5c4
Only used normalised ISO on HTML5
2017-04-27 11:56:18 +12:00
Ingo Schommer
de8abe1167
API rename
2017-04-27 11:53:43 +12:00
Ingo Schommer
9b41350f64
More min/max setter tests
2017-04-27 11:53:34 +12:00
Ingo Schommer
b852a76334
Consistent schema keys
2017-04-27 11:47:04 +12:00
Ingo Schommer
14b3468eee
Removed setting format in getter
...
That’s already handled in getFormatter()
2017-04-27 11:09:59 +12:00
Ingo Schommer
655b047d80
Removed superfluous methods
2017-04-27 11:09:43 +12:00
Ingo Schommer
d3afa0c3b5
Remove array check since setSubmittedValue() no longer supports it
2017-04-27 10:59:44 +12:00
Ingo Schommer
958736502a
Removed “T” str_replace, more comments
2017-04-27 10:32:22 +12:00
Ingo Schommer
a73abbfcb8
unit test cleanup
2017-04-27 09:18:38 +12:00
Ingo Schommer
1ec2abe75f
Fixed timezone and normalised ISO handling
...
A few observations:
- ISO says “T” is optional (https://en.wikipedia.org/wiki/ISO_8601#cite_note-21 ),
- WHATWG says in the HTML5 spec that it’s optional (https://html.spec.whatwg.org/multipage/infrastructure.html#local-dates-and-times )
- W3C says it’s reqiured in 1997 (https://www.w3.org/TR/NOTE-datetime ), but then later says it’s optional in its HTML5 spec (https://www.w3.org/TR/html5/infrastructure.html#floating-dates-and-times ).
- Chrome doesn’t parse values with whitespace separators (requires "T")
- DataObject DBDatetime values and database columns use whitespace separators (and will have many devs relying on this format)
- MySQL only supports whitespace separators (https://dev.mysql.com/doc/refman/5.7/en/datetime.html )
- SQLite can parse both ways (https://sqlite.org/lang_datefunc.html )
So the goal here is to retain ORM/database compatibility with 3.x (whitespace separator),
while exposing "T" separators to the browser in HTML5 mode.
Regarding timezones, this fixes a regression where setValue() would not actually
apply the timezone (last $value assignment is ineffective now that sub fields are removed).
2017-04-26 22:55:29 +12:00
Ingo Schommer
a279d00e81
Min/max validations
2017-04-26 22:45:12 +12:00
Ingo Schommer
e97783b057
Better second handling
2017-04-26 22:45:08 +12:00
Ingo Schommer
d2132e85db
More specific localisations
2017-04-26 22:45:07 +12:00
Saophalkun Ponlu
507add8566
Update changelogs
2017-04-26 22:45:07 +12:00
Saophalkun Ponlu
dba1f61f13
Fix tests related to date time
2017-04-26 22:45:07 +12:00
Saophalkun Ponlu
9d7eef7cf3
Fix datetime field validation for the refactor
2017-04-26 22:45:07 +12:00
Saophalkun Ponlu
4a70662940
Pass html5 flag to front-end
2017-04-26 22:45:07 +12:00